Microsoft XML SDK 2.6 - XML Reference

IXMLDOMNamedNodeMap::item Method

Allows random access to individual nodes within the collection.

Visual Basic Syntax

Set objXMLDOMNode = oXMLDOMNamedNodeMap.item(index)

C/C++ Syntax

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

Parameters

index [in]
Index of the item within the collection. The first item is zero.
listItem [out]
XMLDOMNode object. 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.

See Also

IXMLDOMNamedNodeMap Interface