Microsoft XML SDK 2.6 - XML Reference

ancestorChildNumber Method

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

ancestorChildNumber(bstrNodeName, pNode)

Parameters

bstrNodeName
String. Node name of the desired ancestor.
pNode
Object. Node from which to start the search.

Return Value

Long integer. Returns the 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.

See Also

Applies To: XTLRuntime Object