XML DOM » XTLRuntime » ancestorChildNumber

Compability: Internet Explorer

Syntax:
xtlRuntime.ancestorChildNumber(bstrNodeName, pNode)
bstrNodeName
The 'bstrNodeName' parameter specifies the name of the desired ancestor.
pNode
The 'pNode' parameter is the node from which to start the search.

This method returns the number of the nearest ancestor of a node with the specified node name.

The ancestorChildNumber method returns the number of the nearest ancestor of a node with the specified node name. This method returns the number of the ancestor node relative to its siblings, with the first in the list being #1. It returns null if no such ancestor is found.