INamedNodeMap.RemoveNamedItemNS(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a node specified by local name and namespace URI.
[Android.Runtime.Register("removeNamedItemNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Node;", "GetRemoveNamedItemNS_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.INamedNodeMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.INode? RemoveNamedItemNS (string? namespaceURI, string? localName);
[<Android.Runtime.Register("removeNamedItemNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Node;", "GetRemoveNamedItemNS_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.INamedNodeMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RemoveNamedItemNS : string * string -> Org.W3c.Dom.INode
Parameters
- namespaceURI
- String
The namespace URI of the node to remove.
- localName
- String
The local name of the node to remove.
Returns
The node removed from this map if a node with such a local name and namespace URI exists.
- Attributes
Exceptions
NOT_FOUND_ERR: Raised if there is no node with the specified
namespaceURI
and localName
in this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
NOT_SUPPORTED_ERR: May be raised if the implementation does not
support the feature "XML" and the language exposed through the
Document does not support XML Namespaces (such as []).
Remarks
Removes a node specified by local name and namespace URI. A removed attribute may be known to have a default value when this map contains the attributes attached to an element, as returned by the attributes attribute of the Node
interface. If so, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable. <br>Per [XML Namespaces] , applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace.
Added in DOM Level 2.
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.