Returns the depth within the document tree at which the specified node appears.
Visual Basic Syntax
lValue = oXTLRuntime.depth(objNode)
C/C++ Syntax
HRESULT depth( IXMLDOMNode *pNode, long *pDepth);
Parameters
- pNode
- [in] Node for which the depth is to be returned.
- pDepth
- [out] Depth within the document tree at which the specified node appears. The documentElement, or root node, returns the value 0; its children return the value 1, and so on.
C/C++ Return Value
Returns S_OK if successful, or an error code otherwise.