item Method (IXMLDOMNodeList) (Windows Embedded CE 6.0)

1/6/2010

Allows random access to individual nodes within the collection.

Script Syntax

var objXMLDOMNode = oXMLDOMNodeList.item(index);

Remarks

Ee503540.collapse(en-US,WinEmbedded.60).gifScript Parameters

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

Ee503540.collapse(en-US,WinEmbedded.60).gifScript Return Value

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

Ee503540.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

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

Remarks

Ee503540.collapse(en-US,WinEmbedded.60).gifC/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.

Ee503540.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

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

Ee503540.collapse(en-US,WinEmbedded.60).gifRequirements

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.

See Also

Reference

XML DOM Methods