Expand Minimize

XmlDocument.GetElementsByTagName | getElementsByTagName method

Applies to Windows and Windows Phone

Returns a collection of elements that have the specified name.

Syntax


var xmlNodeList = xmlDocument.getElementsByTagName(tagName);

Parameters

tagName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The element name to find. The value "*" returns all elements in the document.

Return value

Type: XmlNodeList

The collection of elements that match the specified name.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlDocument

 

 

Show:
© 2014 Microsoft