IXMLParser
4/8/2010
The parser takes XML input in one of various 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 table shows the methods of the IXMLParser interface, with a description of the purpose of each.
In This Section
Method | Description |
---|---|
Expands an entity reference |
|
Obtains the current state of the parser |
|
Obtains the root object of the current node |
|
Obtains the secure base URL |
|
Provides XML input to the parser |
|
Fetches an external document type definition (DTD) |
|
Fetches external entities that a DTD has defined |
|
Parses the value of an internal entity reference |
|
Provides data to the parser by pushing the specified data as a raw buffer that contains bytes |
|
Puts the parser back into the initial state so another XML file can be loaded |
|
Parses the specified amount of XML, in characters, |
|
Sets the flags defined in IXMLNodeSource::GetFlags |
|
Sets the input method to be used |
|
Sets the root object of the current node |
|
Sets the secure base URL |
|
Provides input to the parser by passing in a base URL and relative URL from which files can be loaded |
|
Suspends the parser |
Requirements
Header | xmlparser.h |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2000 and later, Smartphone 2002 and later |