OSXMLReaderClass Class Reference
Inheritance diagram for OSXMLReaderClass:
Public Member Functions | |
virtual int | parse (OSRTInputStreamIF &source)=0 |
Parse an XML document. | |
virtual int | parse (const char *const pBuffer, size_t bufSize)=0 |
Parse an XML document from memory buffer. | |
virtual int | parse (const char *const systemId)=0 |
Parse an XML document from a system identifier (URI). |
Detailed Description
Definition at line 198 of file rtSaxCppParserIF.h.
Member Function Documentation
virtual int OSXMLReaderClass::parse | ( | OSRTInputStreamIF & | source | ) | [pure virtual] |
Parse an XML document.
The application can use this method to instruct the SAX parser to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).
Applications may not invoke this method while a parse is in progress (they should create a new Parser instead for each additional XML document). Once a parse is complete, an application may reuse the same Parser object, possibly with a different input source.
- Parameters:
-
source The input source for the top-level of the XML document.
virtual int OSXMLReaderClass::parse | ( | const char *const | pBuffer, | |
size_t | bufSize | |||
) | [pure virtual] |
Parse an XML document from memory buffer.
- Parameters:
-
pBuffer Buffer containg the XML data to be parsed. bufSize Buffer size, in octets.
virtual int OSXMLReaderClass::parse | ( | const char *const | systemId | ) | [pure virtual] |
Parse an XML document from a system identifier (URI).
This method is a shortcut for the common case of reading a document from a system identifier. It is the exact equivalent of the following:
parse(new URLInputSource(systemId));
If the system identifier is a URL, it must be fully resolved by the application before it is passed to the parser.
- Parameters:
-
systemId The system identifier (URI).
The documentation for this class was generated from the following file: