IXMLNodeSource
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 if it is really being driven by a parser or not (if not, this process must fail gracefully).
The following methods are used with the IXMLNodeSource interface.
Method | Description |
---|---|
IXMLNodeSource::Abort | Stops the IXMLNodeSource interface. |
IXMLNodeSource::GetAbsolutePosition | Returns the absolute offset from the beginning of the input stream or buffer after UTF-8 decoding has been applied. |
IXMLNodeSource::GetErrorInfo | Returns a BSTR value that contains more descriptive information about the error (the same BSTR value that was provided to the IXMLNodeSource::Abort method). |
IXMLNodeSource::GetFactory | Retrieves the IXMLNodeFactory interface specified by IXMLNodeSource::SetFactory. |
IXMLNodeSource::GetFlags | Sets the flags that can be combined by using OR to control how the parser works. |
IXMLNodeSource::GetLastError | Returns the last HRESULT that was returned from other methods. |
IXMLNodeSource::GetLineBuffer | Returns the current line of XML that is being parsed. |
IXMLNodeSource::GetLineNumber | Gets the current line number of the XML that is being parsed. |
IXMLNodeSource::GetLinePosition | Gets the current line number of the XML that is being parsed. |
IXMLNodeSource::GetURL | Returns the URL provided in the IXMLParser::SetURL or IXMLParser::Load methods for IXMLNodeSource interfaces that use IXMLParser. |
IXMLNodeSource::SetFactory | Plugs in a custom IXMLNodeFactory interface. |
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: xmlparser.h
Library: xmlparser.lib
Send Feedback on this topic to the authors