IXMLParser
The parser takes XML input in one of a variety of ways (for example, through a stream, a URL to a document, or text pushed to it), parses the XML, and sends parse events to an instance of the IXMLNodeFactory interface. The parser is divided into two interfaces.
- An IXMLNodeSource interface defines the parse events and other information, such as position information for parse errors that are sent to a NodeFactory.
- The IXMLParser interface inherits from IXMLNodeSource and adds methods to define the XML source (stream, URL, or pushed text), set NodeFactories, and deal with security and state reporting issues.
The following methods are used with the IXMLParser : IXMLNodeSource interface.
Method | Description |
---|---|
IXMLParser::ExpandEntity | Expands an entity reference. |
IXMLParser::GetParserState | Gets the current state of the parser. |
IXMLParser::GetRoot | Gets the root object of the current node. |
IXMLParser::GetSecureBaseURL | Gets the secure base URL. |
IXMLParser::Load | Provides XML input to the parser. |
IXMLParser::LoadDTD | Fetches an external document type definition (DTD). |
IXMLParser::LoadEntity | Fetches external entities that a DTD has defined. |
IXMLParser::ParseEntity | Parses the value of an internal entity reference. |
IXMLParser::PushData | Provides data to the parser by pushing the specified data as a raw buffer containing bytes. |
IXMLParser::Reset | Puts the parser back into the initial state so another XML file can be loaded. |
IXMLParser::Run | Parses the specified amount of XML (in characters). |
IXMLParser::SetFlags | Sets the flags defined in IXMLNodeSource::GetFlags. |
IXMLParser::SetInput | Sets the input method to be used. |
IXMLParser::SetRoot | Sets the root object of the current node. |
IXMLParser::SetSecureBaseURL | Sets the secure base URL. |
IXMLParser::SetURL | Provides input to the parser by passing in a base URL and relative URL from which files can be loaded. |
IXMLParser::Suspend | Suspends the parser. |
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: xmlparser.h
Send Feedback on this topic to the authors