Click to return to the XML (Extensible Markup Language) home page    
IXTLRuntime::ancestorChil...     IXTLRuntime::depth Method     IXTLRuntime Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXTLRuntime::childNumber Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.