GetElementsByTagName()

XmlElement::GetElementsByTagName(String) method

Returns an XmlNodeList containing a list of all descendant elements that match the specified XmlElement::get_Name.

virtual SharedPtr<XmlNodeList> System::Xml::XmlElement::GetElementsByTagName(String name)

Arguments

ParameterTypeDescription
nameStringThe name tag to match. This is a qualified name. It is matched against the get_Name value of the matching node. The asterisk (*) is a special value that matches all tags.

Return Value

An XmlNodeList containing a list of all matching nodes. The list is empty if there are no matching nodes.

XmlElement::GetElementsByTagName(String, String) method

Returns an XmlNodeList containing a list of all descendant elements that match the specified XmlElement::get_LocalName and XmlElement::get_NamespaceURI values.

virtual SharedPtr<XmlNodeList> System::Xml::XmlElement::GetElementsByTagName(String localName, String namespaceURI)

Arguments

ParameterTypeDescription
localNameStringThe local name to match. The asterisk (*) is a special value that matches all tags.
namespaceURIStringThe namespace URI to match.

Return Value

An XmlNodeList containing a list of all matching nodes. The list is empty if there are no matching nodes.

See Also