Compartilhar via


ancestorChildNumber Method (Windows CE 5.0)

Send Feedback

Returns the number of the nearest ancestor of a node with the requested node name.

[Script]

Script Syntax

lValue = oXTLRuntime.ancestorChildNumber(bstrNodeName, pNode);

Script Parameters

  • bstrNodeName
    String. Node name of the desired ancestor.
  • pNode
    Object. Node from which to start the search.

Script Return Value

Long integer. Returns the number of the ancestor relative to its sibling nodes. The first entry in the list is assigned the value 1. Returns Null if there is no such ancestor.

[C/C++]

C/C++ Syntax

HRESULT ancestorChildNumber(BSTRbstrNodeName,IXMLDOMNode *pNode,long *pNumber);

C/C++ Parameters

  • bstrNodeName
    [in] Node name of the desired ancestor.
  • pNode
    [in] Node from which to start the search.
  • pNumber
    [out, retval] Number of the ancestor relative to its sibling nodes. The first entry in the list is assigned the value 1. Returns Null if there is no such ancestor.

C/C++ Return Values

Returns S_OK if successful, or an error code otherwise.

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:

IXTLRuntime.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.