Compartilhar via


nextNode Method (IXMLDOMNodeList) (Compact 2013)

3/26/2014

Returns the next node in the collection.

Syntax

var objXMLDOMNode = oXMLDOMNodeList.nextNode();
HRESULT nextNode(  IXMLDOMNode** nextItem);

Parameters

Script

None.

C/C++

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

Return Value

Script

IXMLDOMNode refers to the next node in the collection. Returns Null if there is no next node.

C/C++

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned if nextItem is Null.

Remarks

The iterator initially points before the first node in the list so that the first call to nextNode 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 (IXMLDOMNodeList).

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

This method applies to the following objects and interfaces:

IXMLDOMNamedNodeMap, IXMLDOMNodeList, andIXMLDOMSelection.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods