Compartilhar via


item Method (IXMLDOMNodeList) (Compact 2013)

3/26/2014

Allows random access to individual nodes within the collection.

Syntax

var objXMLDOMNode = oXMLDOMNodeList.item(index);
HRESULT item(
  long index,
  IXMLDOMNode** listItem
);

Parameters

Script

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

C/C++

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

Return Value

Script

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

C/C++

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

Remarks

This method applies to the following objects and interfaces:

IXMLDOMNode, IXMLDOMNodeList, and IXMLDOMSelection.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods