Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNamedNodeMap::leng...     IXMLDOMNamedNodeMap::remo...     IXMLDOMNamedNodeMap Inter...    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNamedNodeMap::nextNode Method


Returns the next node in the collection.

Visual Basic Syntax

Set objXMLDOMNode = oXMLDOMNamedNodeMap.nextNode

C/C++ Syntax

HRESULT nextNode(
    IXMLDOMNode **nextItem);

Parameters

nextItem
[out] Next node in the collection, or NULL if there is no next node.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value when returning null. 
E_INVALIDARG
Value returned if nextItem is null.

Remarks

The iterator initially points before the first node in the list, so the first call to this method returns the first node in the list.

This method returns NULL when the current node is the last node or there are no items in the list.

When the current node is removed from the list, subsequent calls to nextNode return NULL. The iterator must be reset by calling the reset method.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.