GetElementsByTagName()

XmlDocument::GetElementsByTagName(String) method

Returns an XmlNodeList containing a list of all descendant elements that match the specified name.

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

Arguments

ParameterTypeDescription
nameStringThe qualified name to match. It is matched against the get_Name value of the matching node. The special value "*" matches all tags.

Return Value

An XmlNodeList containing a list of all matching nodes. If no nodes match name, the returned collection will be empty.

XmlDocument::GetElementsByTagName(String, String) method

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

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

Arguments

ParameterTypeDescription
localNameStringThe LocalName to match. The special value "*" matches all tags.
namespaceURIStringNamespaceURI to match.

Return Value

An XmlNodeList containing a list of all matching nodes. If no nodes match the specified localName and namespaceURI, the returned collection will be empty.

See Also