Click to return to the XML (Extensible Markup Language) home page    
IXTLRuntime::absoluteChil...     IXTLRuntime::childNumber ...     IXTLRuntime Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXTLRuntime::ancestorChildNumber Method


Returns the number of the nearest ancestor of a node with the requested node name.

Visual Basic Syntax

lValue = oXTLRuntime.ancestorChildNumber(bstrNodeName, objNode)

C/C++ Syntax

HRESULT ancestorChildNumber(
    BSTR bstrNodeName,
    IXMLDOMNode *pNode,
    long *pNumber);

Parameters

bstrNodeName
[in] Node name of the desired ancestor.
pNode
[in] Node from which to start the search.
pNumber
[out] Number of the ancestor relative to its sibling nodes. The first entry in the list is assigned the value 1. Returns null if there is no such ancestor.

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.