Org.W3c.Dom.IElement.RemoveAttribute Method
Removes an attribute by name.

Syntax

[Android.Runtime.Register("removeAttribute", "(Ljava/lang/String;)V", "GetRemoveAttribute_Ljava_lang_String_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RemoveAttribute (string name)

Parameters

name
The name of the attribute to remove.

Exceptions

TypeReason
Org.W3c.Dom.DOMExceptionNO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

Remarks

Removes an attribute by name. If a default value for the removed attribute is defined in the DTD, a new attribute immediately appears with the default value as well as the corresponding namespace URI, local name, and prefix when applicable. The implementation may handle default values from other schemas similarly but applications should use Document.normalizeDocument() to guarantee this information is up-to-date.

If no attribute with this name is found, this method has no effect.

To remove an attribute by local name and namespace URI, use the removeAttributeNS method.

[Android Documentation]

Requirements

Namespace: Org.W3c.Dom
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1