Compartir a través de


getElementsByTagName Method (IXMLDOMElement) (Windows CE 5.0)

Send Feedback

Returns a list of all descendant elements that match the supplied name.

[Script]

Script Syntax

var objXMLDOMNodeList=oXMLDOMElement.getElementsByTagName(tagName);

Script Parameters

  • tagName
    String specifying the name of the element to find. The string "*" matches all descendant elements of this element.

Script Return Value

Object. Returns IXMLDOMNodeList object containing all elements that match the supplied name.

[C/C++]

C/C++ Syntax

HRESULT getElementsByTagName(BSTRtagName,IXMLDOMNodeList** resultList);

C/C++ Parameters

  • tagName
    [in] Name of the element to find. The string "*" matches all descendant elements of this element.
  • resultList
    [out, retval] IXMLDOMNodeList object containing all elements that match the supplied name.

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.

Remarks

Elements appear in the order encountered in a preorder traversal of this element's tree.

Note that the IXMLDOMNodeList object is returned even if there are no matches. In this case, the length of the list will be set to zero.

The IXMLDOMNodeList is live and immediately reflects changes to the nodes that appear in the list.

This method applies to the following objects and interfaces:

IXMLDOMElement and IXMLDOMNodeList.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.