System.Xml.XmlElement.RemoveAttribute Method

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

Syntax

public virtual void RemoveAttribute (string localName, string namespaceURI)

Parameters

localName
The local name of the attribute to remove.
namespaceURI
The namespace URI of the attribute to remove.

Remarks

If the removed attribute is known to have a default value, an attribute immediately appears containing the default value and, if applicable, the corresponding namespace URI, local name, and prefix.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0