Table of Contents

Method RemoveAttributeNode

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

RemoveAttributeNode(XmlAttribute)

Removes the specified XmlAttribute.

XmlAttribute RemoveAttributeNode(XmlAttribute oldAttr)

Parameters

oldAttr XmlAttribute

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

Returns

XmlAttribute

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

RemoveAttributeNode(string, string)

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

XmlAttribute RemoveAttributeNode(string localName, string namespaceURI)

Parameters

localName string

The local name of the attribute.

namespaceURI string

The namespace URI of the attribute.

Returns

XmlAttribute

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