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 validIXMLDOMParseError2
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.
- Resource Files (books.xml and books.xsd)
- JScript Code (next.js)
- Visual Basic Code (next.frm)
- C/C++ Code (next.cpp)
- Output for the next Example
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 in the upper-left corner of the page.