Microsoft XML 2.5 SDK


 

IXTLRuntime::childNumber Method

[This is preliminary documentation and subject to change.]

Returns the number of the node relative to siblings of the same node name.

Visual Basic Syntax

lValue = oXTLRuntime.childNumber(objNode)

C/C++ Syntax

HRESULT childNumber(

    IXMLDOMNode *pNode,

    long *pNumber);

Parameters

pNode

[in]
Node for which the child number is to be returned.

pNumber

[out]
Index for the node in its parent's list of child nodes with that name. The first entry in the list is assigned the value 1.

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.