Microsoft XML SDK 2.6 - XML Reference

depth Method

Returns the depth within the document tree at which the specified node appears.

depth(pNode)

Parameters

pNode
Object. Node for which the depth is to be returned.

Return Value

Long integer. Returns the depth within the document tree at which the specified node appears. The document element, or root node, returns the value "0"; its children return the value "1", and so on.

See Also

Applies To: XTLRuntime Object