next Property1


[This sample code uses features that were first implemented in MSXML 5.0 for Microsoft Office Applications.]

Returns the next item in the error collection object.

var objErr =;  

Set objErr =;  

IXMLDOMParseError2Ptr objErr = objIXMLDOMParseErrorCollection->next;  

HRESULT get_next(IXMLDOMParseError2 **objErr);  


objErr[out, retval]
A pointer to an IXMLDOMParseError2 object from the error collection.

Return Values

The value returned if successful. The resultant objErr parameter returns a valid IXMLDOMParseError2 object.

The value returned if the end of the list has been reached. The resultant objErr parameter is NULL.

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.

Implemented in: MSXML 6.0