System::Xml::XmlDocument::GetElementsByTagName method

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)
ParameterTypeDescription
localNameStringThe LocalName to match. The special value "*" matches all tags.
namespaceURIStringNamespaceURI to match.

ReturnValue

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

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)
ParameterTypeDescription
nameStringThe qualified name to match. It is matched against the get_Name value of the matching node. The special value "*" matches all tags.

ReturnValue

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

See Also