Dela via


INode.LookupPrefix(String) Method

Definition

Look up the prefix associated to the given namespace URI, starting from this node.

[Android.Runtime.Register("lookupPrefix", "(Ljava/lang/String;)Ljava/lang/String;", "GetLookupPrefix_Ljava_lang_String_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? LookupPrefix (string? namespaceURI);
[<Android.Runtime.Register("lookupPrefix", "(Ljava/lang/String;)Ljava/lang/String;", "GetLookupPrefix_Ljava_lang_String_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member LookupPrefix : string -> string

Parameters

namespaceURI
String

The namespace URI to look for.

Returns

Returns an associated namespace prefix if found or null if none is found. If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation dependent.

Attributes

Remarks

Look up the prefix associated to the given namespace URI, starting from this node. The default namespace declarations are ignored by this method. <br>See for details on the algorithm used by this method.

Added in DOM Level 3.

Java documentation for org.w3c.dom.Node.lookupPrefix(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