IElement.GetAttributeNodeNS(String, String) Method

Definition

Retrieves an Attr node by local name and namespace URI.

[Android.Runtime.Register("getAttributeNodeNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;", "GetGetAttributeNodeNS_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IAttr? GetAttributeNodeNS (string? namespaceURI, string? localName);
[<Android.Runtime.Register("getAttributeNodeNS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;", "GetGetAttributeNodeNS_Ljava_lang_String_Ljava_lang_String_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeNodeNS : string * string -> Org.W3c.Dom.IAttr

Parameters

namespaceURI
String

The namespace URI of the attribute to retrieve.

localName
String

The local name of the attribute to retrieve.

Returns

The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.

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 an Attr node 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.Element.getAttributeNodeNS(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