<OFXMLParserDelegate> Protocol Reference

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

#import <OFXMLParser.h>

List of all members.

Public Member Functions

(void) - xmlParser:didStartTagWithName:prefix:namespace:attributes:
(void) - xmlParser:didEndTagWithName:prefix:namespace:
(void) - xmlParser:foundString:
(void) - xmlParser:foundComment:
(OFString *) - xmlParser:foundUnknownEntityNamed:

Detailed Description

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


Member Function Documentation

- (void) xmlParser: (OFXMLParser *)  parser
didEndTagWithName: (OFString *)  name
prefix: (OFString *)  prefix
namespace: (OFString *)  ns 

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
- (void) xmlParser: (OFXMLParser *)  parser
didStartTagWithName: (OFString *)  name
prefix: (OFString *)  prefix
namespace: (OFString *)  ns
attributes: (OFArray *)  attrs 

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
- (void) xmlParser: (OFXMLParser *)  parser
foundComment: (OFString *)  comment 

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
- (void) xmlParser: (OFXMLParser *)  parser
foundString: (OFString *)  string 

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

Parameters:
parser The parser which found a string
string The string the XML parser found
- (OFString*) xmlParser: (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:
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:
 All Classes Functions Variables
Generated on Sun May 9 16:52:22 2010 for ObjFW by  doxygen 1.6.3