Share via


ancestorChildNumber Method (Compact 2013)

3/26/2014

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

Syntax

lValue = oXTLRuntime.ancestorChildNumber(bstrNodeName, pNode);
HRESULT ancestorChildNumber(
  BSTR bstrNodeName,
  IXMLDOMNode *pNode,
  long *pNumber
);

Parameters

Script

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

C/C++

  • 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.

Return Value

Script

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++

Returns S_OK if successful, or an error code otherwise.

Remarks

This method applies to the following interface:

IXTLRuntime.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XSLT Methods