RemoveAttributeNode()

XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute>) method

Removes the specified XmlAttribute.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute> oldAttr)

Arguments

ParameterTypeDescription
oldAttrSharedPtr<XmlAttribute>The XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced.

Return Value

The removed XmlAttribute or nullptr if oldAttr is not an attribute node of the XmlElement.

XmlElement::RemoveAttributeNode(String, String) method

Removes the XmlAttribute specified by the local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced).

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

Arguments

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

Return Value

The removed XmlAttribute or nullptr if the XmlElement does not have a matching attribute node.

See Also