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.