A protocol that needs to be implemented by delegates for OFXMLParser.
More...
#include <OFXMLParser.h>
List of all members.
Public Member Functions |
void | parser:foundProcessingInstructions: (OFXMLParser *parser,[foundProcessingInstructions] OFString *pi) |
void | parser:didStartElement:withPrefix:namespace:attributes: (OFXMLParser *parser,[didStartElement] OFString *name,[withPrefix] OFString *prefix,[namespace] OFString *ns,[attributes] OFArray *attrs) |
void | parser:didEndElement:withPrefix:namespace: (OFXMLParser *parser,[didEndElement] OFString *name,[withPrefix] OFString *prefix,[namespace] OFString *ns) |
void | parser:foundCharacters: (OFXMLParser *parser,[foundCharacters] OFString *string) |
void | parser:foundCDATA: (OFXMLParser *parser,[foundCDATA] OFString *cdata) |
void | parser:foundComment: (OFXMLParser *parser,[foundComment] OFString *comment) |
OFString * | parser:foundUnknownEntityNamed: (OFXMLParser *parser,[foundUnknownEntityNamed] OFString *entity) |
Detailed Description
A protocol that needs to be implemented by delegates for OFXMLParser.
Member Function Documentation
This callback is called when the XML parser found the end of a tag.
- Parameters:
-
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 |
This callback is called when the XML parser found the start of a new tag.
- Parameters:
-
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 |
attrs | The attributes included in the tag which just started or nil |
This callback is called when the XML parser found CDATA.
- Parameters:
-
parser | The parser which found a string |
cdata | The CDATA the XML parser found |
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:
-
parser | The parser which found a string |
string | The string the XML parser found |
This callback is called when the XML parser found a comment.
- Parameters:
-
parser | The parser which found a comment |
comment | The comment the XML parser found |
This callback is called when the XML parser found processing instructions.
- Parameters:
-
parser | The parser which found processing instructions |
pi | The processing instructions |
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:
-
parser | The parser which found an unknown entity |
entity | The 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: