System.Xml.XmlElement.RemoveAttribute Method

Removes an attribute by name.

Syntax

public virtual void RemoveAttribute (string name)

Parameters

name
The name of the attribute to remove.This is a qualified name. It is matched against the Name property of the matching node.

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