IXMLDOMParseError2

 

[This sample code uses features that were first implemented in MSXML 5.0 for Microsoft Office Applications.]

The IXMLDOMParseError2 interface extends the IXMLDOMParseError interface and provides enhanced error handling functionality. With IXMLDOMParseError2, you can:

  • Retrieve and inspect all errors and warnings found during validation.

  • Retrieve and examine the parameters used to construct an error message.

  • Determine the location of the DOM node where an error occurred.

Use the parseError property of DOMDocument to access this interface from a DOM object.

PropertyDescription
allErrorsReturns a collection of all errors and warnings found during validation. Read-only.
errorParametersCountReturns the number of error parameters returned in errorParameters. Read-only.
errorXPathReturns an XPath expression, which locates the node where the error occurred. Read-only
MethodDescription
errorParametersFor a given index, this method returns the corresponding parameter used to construct the error message.

None.

Implementation:

msxml6.dll, msxml6.lib

Header and IDL files:

msxml2.6, msxml6.idl

Inheritance:

Inherits from the IXMLDOMParseError interface.

Implemented in:

MSXML 6.0

parseError Property
IXMLDOMParseError
IXMLDOMParseErrorCollection

Show: