Compartilhar via


item Method (IXMLDOMNodeList)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Allows random access to individual nodes within the collection.

Script Syntax

var objXMLDOMNode = oXMLDOMNodeList.item(index);

Remarks

Script Parameters

  • index
    Long integer. Index of the item within the collection. The first item is zero.

Script Return Value

Object. Returns IXMLDOMNode. Returns Null if the index is out of range.

C/C++ Syntax

HRESULT item(
  long index,
  IXMLDOMNode** listItem
);

Remarks

C/C++ Parameters

  • index
    [in] Index of the item within the collection. The first item is number zero.
  • listItem
    [out, retval] IXMLDOMNode. Returns Null if the index is out of range.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG
    Value returned if listItem is Null.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMNode, IXMLDOMNodeList, and IXMLDOMSelection.