Click to return to the XML (Extensible Markup Language) home page    
IXTLRuntime::childNumber ...     IXTLRuntime::formatDate M...     IXTLRuntime Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXTLRuntime::depth Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.