IXMLNodeFactory::Error
This method is called when the parser encounters an error in the XML document. The parser will stop and return the HRESULT error code to the caller. The IXMLNodeFactory interface can call back to the parser to get more information about the error.
Syntax
HRESULT Error(
IXMLNodeSource * pSource,
HRESULT hrErrorCode,
USHORT cNumRecs,
XML_NODE_INFO * apNodeInfo
);
Parameters
- pSource
[in] The node source is passed into each node factory call so that the node factory can call back and get important information, such as the current line number, or stop the parser. - hrErrorCode
[in] The error code corresponding to the error encountered in the XML document. - cNumRecs
[in] Number of XML_NODE_INFO structures. - apNodeInfo
[in] Pointer to an XML_NODE_INFO structure that contains the information about the node that was being processed when the parser encountered the error.
Return Values
An appropriate HRESULT value corresponding to the error encountered in the XML document.
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
See Also
IXMLNodeFactory | XML_NODE_INFO
Send Feedback on this topic to the authors