ObjFW
 All Classes Functions Variables
Instance Methods | List of all members
<OFXMLParserDelegate> Protocol Referenceabstract

A protocol that needs to be implemented by delegates for OFXMLParser. More...

#import <OFXMLParser.h>

Inheritance diagram for <OFXMLParserDelegate>:
<OFObject> OFXMLElementBuilder

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.
 

Detailed Description

A protocol that needs to be implemented by delegates for OFXMLParser.

Method Documentation

- (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.

Parameters
parserThe parser which found the end of a tag
nameThe name of the tag which just ended
prefixThe prefix of the tag which just ended or nil
nsThe 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.

Parameters
parserThe parser which found a new tag
nameThe name of the tag which just started
prefixThe prefix of the tag which just started or nil
nsThe namespace of the tag which just started or nil
attributesThe 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.

Parameters
parserThe parser which found a string
CDATAThe 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.

Parameters
parserThe parser which found a string
charactersThe characters the XML parser found
- (void) parser: (OFXMLParser *)  parser
foundComment: (OFString *)  comment 

This callback is called when the XML parser found a comment.

Parameters
parserThe parser which found a comment
commentThe comment the XML parser found
- (void) parser: (OFXMLParser *)  parser
foundProcessingInstructions: (OFString *)  pi 

This callback is called when the XML parser found processing instructions.

Parameters
parserThe parser which found processing instructions
piThe 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.

Parameters
parserThe parser which found an unknown entity
entityThe name of the entity the XML parser didn't know
Returns
A substitution for the entity or nil

The documentation for this protocol was generated from the following file: