Share via


ISAXXMLReader::putErrorHandler Method (Windows Embedded CE 6.0)

1/6/2010

This method allows an application to register an error handler.

Syntax

HRESULT putErrorHandler(
  ISAXErrorHandler* pHandler
);

Parameters

  • pHandler
    [in] Pointer to the error handler to use.

Return Value

  • S_OK
    Returned if the error handler is successfully registered.

Remarks

If the application does not register an error handler, all error events reported by the reader are ignored. It is strongly recommended that all SAX2 (Simple API for XML) applications implement an error handler to avoid unexpected bugs. An application can register a new or different handler while in the middle of parsing a document, and the reader will immediately start using the new handler.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

ISAXXMLReader
ISAXXMLReader::getErrorHandler Method