item Property [DOM]
[This sample code uses features that were first implemented in MSXML 5.0 for Microsoft Office Applications.]
Returns the item from the collection with the specified index. The index starts at zero.
HRESULT get_item( LONG index, IXMLDOMParseError2 **objErr);
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 two languages: JScript and C++. The output is the same in each language.