Share via


ancestorChildNumber Method (Windows Embedded CE 6.0)

1/6/2010

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

Script Syntax

            lValue = oXTLRuntime.ancestorChildNumber(bstrNodeName, pNode);

Remarks

Ee502795.collapse(en-US,WinEmbedded.60).gifScript Parameters

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

Ee502795.collapse(en-US,WinEmbedded.60).gifScript 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.

Ee502795.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT ancestorChildNumber(
  BSTR bstrNodeName,
  IXMLDOMNode *pNode,
  long *pNumber
);

Remarks

Ee502795.collapse(en-US,WinEmbedded.60).gifC/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.

Ee502795.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

Returns S_OK if successful, or an error code otherwise.

Ee502795.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This method applies to the following interface:

IXTLRuntime.

See Also

Reference

XSLT Methods