ObjFW
Public Member Functions | Static Public Member Functions
OFXMLParser Class Reference

An event-based XML parser. More...

#import <OFXMLParser.h>

Inheritance diagram for OFXMLParser:
OFObject <OFStringXMLUnescapingDelegate> <OFObject> <OFObject>

List of all members.

Public Member Functions

(id< OFXMLParserDelegate >) - delegate
 Returns the delegate that is used by the XML parser.
(void) - setDelegate:
 Sets the delegate the OFXMLParser should use.
(void) - parseBuffer:withLength:
 Parses the specified buffer with the specified size.
(void) - parseString:
 Parses the specified string.
(void) - parseStream:
 Parses the specified stream.
(void) - parseFile:
 Parses the specified file.
(size_t) - lineNumber
 Returns the current line number.
(BOOL) - finishedParsing
 Returns whether the XML parser has finished parsing.

Static Public Member Functions

(id) + parser
 Creates a new XML parser.

Detailed Description

An event-based XML parser.

OFXMLParser is an event-based XML parser which calls the delegate's callbacks as soon asit finds something, thus suitable for streams as well.


Member Function Documentation

- (id <OFXMLParserDelegate>) delegate

Returns the delegate that is used by the XML parser.

Returns:
The delegate that is used by the XML parser
- (BOOL) finishedParsing

Returns whether the XML parser has finished parsing.

Returns:
Whether the XML parser has finished parsing
- (size_t) lineNumber

Returns the current line number.

Returns:
The current line number
- (void) parseBuffer: (const char*)  buffer
withLength: (size_t)  length 

Parses the specified buffer with the specified size.

Parameters:
bufferThe buffer to parse
lengthThe length of the buffer
- (void) parseFile: (OFString*)  path

Parses the specified file.

Parameters:
pathThe path to the file to parse
+ (id) parser

Creates a new XML parser.

Returns:
A new, autoreleased OFXMLParser
- (void) parseStream: (OFStream*)  stream

Parses the specified stream.

Parameters:
streamThe stream to parse
- (void) parseString: (OFString*)  string

Parses the specified string.

Parameters:
stringThe string to parse
- (void) setDelegate: (id <OFXMLParserDelegate>)  delegate

Sets the delegate the OFXMLParser should use.

Parameters:
delegateThe delegate to use

The documentation for this class was generated from the following files:
 All Classes Functions Variables Properties