A protocol that needs to be implemented by delegates for OFXMLParser. More...
#import <OFXMLParser.h>
Instance Methods | |
(void) | - parser:foundProcessingInstructions: |
This callback is called when the XML parser found processing instructions. | |
(void) | - parser:didStartElement:withPrefix:namespace:attributes: |
This callback is called when the XML parser found the start of a new tag. | |
(void) | - parser:didEndElement:withPrefix:namespace: |
This callback is called when the XML parser found the end of a tag. | |
(void) | - parser:foundCharacters: |
This callback is called when the XML parser found characters. | |
(void) | - parser:foundCDATA: |
This callback is called when the XML parser found CDATA. | |
(void) | - parser:foundComment: |
This callback is called when the XML parser found a comment. | |
(OFString *) | - parser:foundUnknownEntityNamed: |
This callback is called when the XML parser found an entity it doesn't know. | |
Instance Methods inherited from <OFObject> | |
(Class) | - class |
Returns the class of the object. | |
(BOOL) | - isKindOfClass: |
Returns a boolean whether the object of the specified kind. | |
(BOOL) | - isMemberOfClass: |
Returns a boolean whether the object is a member of the specified class. | |
(BOOL) | - respondsToSelector: |
Returns a boolean whether the object responds to the specified selector. | |
(BOOL) | - conformsToProtocol: |
Checks whether the object conforms to the specified protocol. | |
(IMP) | - methodForSelector: |
Returns the implementation for the specified selector. | |
(const char *) | - typeEncodingForSelector: |
Returns the type encoding for the specified selector. | |
(id) | - performSelector: |
Performs the specified selector. | |
(id) | - performSelector:withObject: |
Performs the specified selector with the specified object. | |
(id) | - performSelector:withObject:withObject: |
Performs the specified selector with the specified objects. | |
(BOOL) | - isEqual: |
Checks two objects for equality. | |
(uint32_t) | - hash |
Calculates a hash for the object. | |
(id) | - retain |
Increases the retain count. | |
(unsigned int) | - retainCount |
Returns the retain count. | |
(void) | - release |
Decreases the retain count. | |
(id) | - autorelease |
Adds the object to the topmost OFAutoreleasePool of the thread's autorelease pool stack. | |
(id) | - self |
Returns the receiver. | |
(BOOL) | - isProxy |
Returns whether the object is a proxy object. | |
A protocol that needs to be implemented by delegates for OFXMLParser.
- (void) parser: | (OFXMLParser *) | parser | |
didEndElement: | (OFString *) | name | |
withPrefix: | (OFString *) | prefix | |
namespace: | (OFString *) | ns | |
This callback is called when the XML parser found the end of a tag.
parser | The parser which found the end of a tag |
name | The name of the tag which just ended |
prefix | The prefix of the tag which just ended or nil |
ns | The namespace of the tag which just ended or nil |
- (void) parser: | (OFXMLParser *) | parser | |
didStartElement: | (OFString *) | name | |
withPrefix: | (OFString *) | prefix | |
namespace: | (OFString *) | ns | |
attributes: | (OFArray *) | attributes | |
This callback is called when the XML parser found the start of a new tag.
parser | The parser which found a new tag |
name | The name of the tag which just started |
prefix | The prefix of the tag which just started or nil |
ns | The namespace of the tag which just started or nil |
attributes | The attributes included in the tag which just started or nil |
- (void) parser: | (OFXMLParser *) | parser | |
foundCDATA: | (OFString *) | CDATA | |
This callback is called when the XML parser found CDATA.
parser | The parser which found a string |
CDATA | The CDATA the XML parser found |
- (void) parser: | (OFXMLParser *) | parser | |
foundCharacters: | (OFString *) | characters | |
This callback is called when the XML parser found characters.
In case there are comments or CDATA, it is possible that this callback is called multiple times in a row.
parser | The parser which found a string |
characters | The characters the XML parser found |
- (void) parser: | (OFXMLParser *) | parser | |
foundComment: | (OFString *) | comment | |
This callback is called when the XML parser found a comment.
parser | The parser which found a comment |
comment | The comment the XML parser found |
- (void) parser: | (OFXMLParser *) | parser | |
foundProcessingInstructions: | (OFString *) | pi | |
This callback is called when the XML parser found processing instructions.
parser | The parser which found processing instructions |
pi | The processing instructions |
- (OFString*) parser: | (OFXMLParser *) | parser | |
foundUnknownEntityNamed: | (OFString *) | entity | |
This callback is called when the XML parser found an entity it doesn't know.
The callback is supposed to return a substitution for the entity or nil if it is not known to the callback as well, in which case an exception will be risen.
parser | The parser which found an unknown entity |
entity | The name of the entity the XML parser didn't know |