IElement.RemoveAttributeNode(IAttr) Method

Definition

Removes the specified attribute node.

[Android.Runtime.Register("removeAttributeNode", "(Lorg/w3c/dom/Attr;)Lorg/w3c/dom/Attr;", "GetRemoveAttributeNode_Lorg_w3c_dom_Attr_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IAttr? RemoveAttributeNode (Org.W3c.Dom.IAttr? oldAttr);
[<Android.Runtime.Register("removeAttributeNode", "(Lorg/w3c/dom/Attr;)Lorg/w3c/dom/Attr;", "GetRemoveAttributeNode_Lorg_w3c_dom_Attr_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RemoveAttributeNode : Org.W3c.Dom.IAttr -> Org.W3c.Dom.IAttr

Parameters

oldAttr
IAttr

The Attr node to remove from the attribute list.

Returns

The Attr node that was removed.

Attributes

Exceptions

NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldAttr is not an attribute of the element.

Remarks

Removes the specified attribute node. If a default value for the removed Attr node is defined in the DTD, a new node 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.

Java documentation for org.w3c.dom.Element.removeAttributeNode(org.w3c.dom.Attr).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to