Export (0) Print
Expand All

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.

Property

Description

allErrors

Returns a collection of all errors and warnings found during validation. Read-only.

errorParametersCount

Returns the number of error parameters returned in errorParameters. Read-only.

errorXPath

Returns an XPath expression, which locates the node where the error occurred. Read-only

Method

Description

errorParameters

For a given index, this method returns the corresponding parameter used to construct the error message.

Implementation:

msxml6.dll, msxml6.lib

Header and IDL files:

msxml2.6, msxml6.idl

Inheritance:

Inherits from the IXMLDOMParseError interface.

Implemented in:

MSXML 6.0

Show:
© 2014 Microsoft