XBinder XML Runtime  XBinder Version 3.0.x
Public Member Functions | List of all members
OSXMLReaderClass Class Referenceabstract
Inheritance diagram for OSXMLReaderClass:
OSXMLBase

Public Member Functions

virtual int parse ()=0
 
virtual int parse (OSRTInputStreamIF &source)=0
 Parse an XML document. More...
 
virtual int parse (const char *const pBuffer, size_t bufSize)=0
 Parse an XML document from memory buffer. More...
 
virtual int parse (const char *const systemId)=0
 Parse an XML document from a system identifier (URI). More...
 
- Public Member Functions inherited from OSXMLBase
virtual void release ()=0
 

Detailed Description

Definition at line 198 of file rtSaxCppParserIF.h.

Member Function Documentation

◆ parse() [1/3]

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
sourceThe input source for the top-level of the XML document.

◆ parse() [2/3]

virtual int OSXMLReaderClass::parse ( const char *const  pBuffer,
size_t  bufSize 
)
pure virtual

Parse an XML document from memory buffer.

Parameters
pBufferBuffer containg the XML data to be parsed.
bufSizeBuffer size, in octets.

◆ parse() [3/3]

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
systemIdThe system identifier (URI).

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