Compartilhar via


IXMLNodeFactory::Error

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 IXMLNodeFactory interface 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_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 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

Reference

IXMLNodeFactory
XML_NODE_INFO