Microsoft XML 2.5 SDK


 

IXMLDOMNodeList::item Method

[This is preliminary documentation and subject to change.]

Allows random access to individual nodes within the collection.

Visual Basic Syntax

Set objXMLDOMNode = oXMLDOMNodeList.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 number zero.

listItem

[out]
IXMLDOMNode 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.