XmlDocument.GetElementsByTagName(String) Method

Definition

Returns a collection of elements that have the specified name.

public:
 virtual XmlNodeList ^ GetElementsByTagName(Platform::String ^ tagName) = GetElementsByTagName;
XmlNodeList GetElementsByTagName(winrt::hstring const& tagName);
public XmlNodeList GetElementsByTagName(string tagName);
function getElementsByTagName(tagName)
Public Function GetElementsByTagName (tagName As String) As XmlNodeList

Parameters

tagName
String

Platform::String

winrt::hstring

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

Returns

The collection of elements that match the specified name.

Applies to