Partager via


item Method (IXMLDOMNamedNodeMap) (Windows Embedded CE 6.0)

1/6/2010

Allows random access to individual nodes within the collection.

Script Syntax

var objXMLDOMNode = oXMLDOMNamedNodeMap.item(index);

Remarks

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

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

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

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

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

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

Remarks

Ee502415.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

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

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

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

Ee502415.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, IXMLDOMNamedNodeMap, and IXMLDOMSelection.

See Also

Reference

XML DOM Methods