Microsoft XML 2.5 SDK


 

ancestorChildNumber Method

[This is preliminary documentation and subject to change.] Returns the number of the nearest ancestor of a node with the requested node name.

Syntax

ancestorChildNumber(bstrNodeName, pNode)

Parameters

bstrNodeName

String. Node name of the desired ancestor.

pNode

Object. Node from which to start the search.

Returns

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.

Applies To

XTLRuntime