Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

IXMLDOMParseErrorCollection

Returns a collection of parsing errors.

Use the allErrors property of the IXMLDOMParseError2 interface to access the IXMLDOMParseErrorCollection interface. Errors in this collection are in the same order in which they were found. The parseError object reported on the DOMDocument is also the first error object in this collection.

To use this interface, you must set the MultipleErrorMessages property on the DOM as shown in the following JScript code fragment:

objDom.setProperty("MultipleErrorMessages", true);

Properties

_newEnum Returns the enumerator object for the error collection. This allows items in the collection to be enumerated in Visual Basic For Each... In... Next constructions. Read-only.
length Returns the number of items in the error collection. Read-only.
item Returns an item from the error collection with the specified index. The index starts at zero. Read-only
next Returns the next item of the error collection. Read-only.

Methods

reset Resets the internal position to the start, so that the next method will return the first error in the collection.

Events

None.

Requirements

Implementation: msxml5.dll, msxml2.lib

[C/C++]

Header and IDL files: msxml2.h, msxml2.idl

Inheritance: Inherits from the IDispatch interface.

Versioning

MSXML 5.0 and later

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.