IXMLNodeSource
4/8/2010
The IXMLNodeSource interface is defined as a base class for the IXMLParser so that other components can drive an IXMLNodeFactory interface without having to implement the full IXMLParser interface. For example, the IXMLNodeSource interface can drive an instance of IXMLNodeFactory from a component that extracts the data out of a database.
If an instance of the IXMLNodeFactory interface requires methods not defined here but in IXMLParser, it must use QueryInterface on IXMLParser to see whether it is really being driven by a parser or not (otherwise, this process must fail gracefully).
The following table shows the methods of the IXMLNodeSource interface, with a description of the purpose of each.
Method | Description |
---|---|
Stops the IXMLNodeSource interface |
|
Returns the absolute offset from the beginning of the input stream or buffer after UTF-8 decoding is applied |
|
Returns a BSTR value that contains more descriptive information about the error (the same BSTR value that was provided to the IXMLNodeSource::Abort method) |
|
Retrieves the IXMLNodeFactory interface specified by IXMLNodeSource::SetFactory |
|
Sets the flags that can be combined by using OR to control how the parser works |
|
Returns the last HRESULT that was returned from other methods |
|
Returns the current line of XML that is being parsed |
|
Obtains the current line number of the XML that is being parsed |
|
Obtains the current line number of the XML that is being parsed |
|
Returns the URL That Is Provided in the IXMLParser::SetURL or IXMLParser::Load methods for IXMLNodeSource interfaces that use IXMLParser |
|
Plugs in a custom IXMLNodeFactory interface |
Requirements
Header | xmlparser.h |
Library | xmlparser.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2000 and later, Smartphone 2002 and later |