Partager via


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.

Properties

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

Methods

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

Events

None.

Requirements

Implementation:

msxml6.dll, msxml6.lib

Header and IDL files:

msxml2.6, msxml6.idl

Inheritance:

Inherits from the IXMLDOMParseError interface.

Versioning

Implemented in:

MSXML 6.0

See Also

parseError Property
IXMLDOMParseError
IXMLDOMParseErrorCollection