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

next Property

Returns the next item in the error collection object.

[Script]

Script Syntax

var objErr = objIXMLDOMParseErrorCollection.next;
[Visual Basic]

Visual Basic Syntax

Set objErr = objIXMLDOMParseErrorCollection.next;
[C/C++]

C/C++ Syntax Using Smart Pointers

IXMLDOMParseError2Ptr objErr = objIXMLDOMParseErrorCollection->next;

C/C++ Syntax

HRESULT get_next(IXMLDOMParseError2 **objErr);

Parameters

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

Return Values

S_OK
The value returned if successful. The resultant objErr parameter returns a valid IXMLDOMParseError2 object.
E_FAIL
The value returned if the end of the list has been reached. The resultant objErr parameter is NULL.

Example

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.

Applies To

IXMLDOMParseErrorCollection 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.