Returns the item from the collection with the specified index. The index starts at zero.
var objErr = IXMLDOMParseErrorCollection.item(index);
Set objErr = IXMLDOMParseErrorCollection.item(index);
IXMLDOMParseError2Ptr objErr=objIXMLDOMParseErrorCollection->item[index];
HRESULT get_item( LONG index, IXMLDOMParseError2 **objErr);
LONG
value specifying a zero-based index as the input.IXMLDOMParseError2
object corresponding to the specified item index in the error collection.objErr
parameter is not NULL.The following code performs an XSD validation on an XML document that has two invalid <book>
nodes. The code then iterates through the resultant error collection, and examines each item retrieved.
This example uses the same two resource files used in the allErrors example. We've provided source files for the sample in three languages: JScript, Visual Basic, and C++. The output is the same in each language.
IXMLDOMParseErrorCollection Interface
MSXML 5.0 and later
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.