System::Xml::XmlElement::RemoveAttributeNode method

XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute>) method

Removes the specified XmlAttribute.

virtual SharedPtr<XmlAttribute> System::Xml::XmlElement::RemoveAttributeNode(SharedPtr<XmlAttribute> oldAttr)
ParameterTypeDescription
oldAttrSharedPtr<XmlAttribute>The XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced.

ReturnValue

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

See Also

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)
ParameterTypeDescription
localNameStringThe local name of the attribute.
namespaceURIStringThe namespace URI of the attribute.

ReturnValue

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

See Also