Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

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 IXMLNodeFactoryinterface can call back to the parser to obtain 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 obtain important information, such as the current line number, or stop the parser

hrErrorCode

[in] The error code that corresponds to the error encountered in the XML document

cNumRecs

[in] Number of XML_NODE_INFOstructures

apNodeInfo

[in] Pointer to an XML_NODE_INFOstructure that contains the information about the node that was being processed when the parser encountered the error

Return Value

An appropriate HRESULT value that corresponds to the error encountered in the XML document.

Requirements

Header xmlparser.h
Library xmlparser.lib
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also