GetAttributeNode()

XmlElement::GetAttributeNode(String) method

Returns the XmlAttribute with the specified name.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::GetAttributeNode(String name)

Arguments

ParameterTypeDescription
nameStringThe name of the attribute to retrieve. This is a qualified name. It is matched against the get_Name value of the matching node.

Return Value

The specified XmlAttribute or nullptr if a matching attribute was not found.

XmlElement::GetAttributeNode(String, String) method

Returns the XmlAttribute with the specified local name and namespace URI.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::GetAttributeNode(String localName, String namespaceURI)

Arguments

ParameterTypeDescription
localNameStringThe local name of the attribute.
namespaceURIStringThe namespace URI of the attribute.

Return Value

The specified XmlAttribute or nullptr if a matching attribute was not found.

See Also