Condividi tramite


INamedNodeMap.GetNamedItemNS(String, String) Method

Definition

Retrieves a node specified by local name and namespace URI.

[Android.Runtime.Register("getNamedItemNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Node;", "GetGetNamedItemNS_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? GetNamedItemNS (string? namespaceURI, string? localName);
[<Android.Runtime.Register("getNamedItemNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Node;", "GetGetNamedItemNS_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.INamedNodeMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNamedItemNS : string * string -> Org.W3c.Dom.INode

Parameters

namespaceURI
String

The namespace URI of the node to retrieve.

localName
String

The local name of the node to retrieve.

Returns

A Node (of any type) with the specified local name and namespace URI, or null if they do not identify any node in this map.

Attributes

Exceptions

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

Retrieves a node specified by local name and namespace URI. <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.

Java documentation for org.w3c.dom.NamedNodeMap.getNamedItemNS(java.lang.String, java.lang.String).

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