Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the depth within the document tree where the specified node appears.
[Script]
Script Syntax
lValue= oXTLRuntime.depth(pNode);
Script Parameters
- pNode
Object. Node for which the depth is to be returned.
Script Return Value
Long integer. The document element, or root node, returns the value "0"; its children return the value 1, and so on.
[C/C++]
C/C++ Syntax
HRESULT depth(IXMLDOMNode* pNode,long* pDepth);
C/C++ Parameters
- pNode
[in] Node for which the depth is to be returned. - pDepth
[out, retval] 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 Values
- S_OK
Value returned if successful.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
General Remarks
This method applies to the following interface:
Send Feedback on this topic to the authors