|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
Returns a list of all descendant elements that match the supplied name.
var objXMLDOMNodeList = oXMLDOMElement.getElementsByTagName( tagName);
String specifying the name of the element to find. The string "*" matches all descendant elements of this element.
Script Return Value
Object. Returns IXMLDOMNodeListobject containing all elements that match the supplied name.
HRESULT getElementsByTagName( BSTR tagName, IXMLDOMNodeList** resultList );
[in] Name of the element to find. The string "*" matches all descendant elements of this element.
[out, retval] IXMLDOMNodeListobject containing all elements that match the supplied name.
C/C++ Return Values
Value returned if successful.
|Windows Embedded CE||Windows CE .NET 4.0 and later|
Elements appear in the order encountered in a preorder traversal of this element's tree.
Note that the IXMLDOMNodeListobject is returned even if there are no matches. In this case, the length of the list will be set to zero.
The IXMLDOMNodeListis live and immediately reflects changes to the nodes that appear in the list.
This method applies to the following objects and interfaces: