Javax.Xml.Namespace.INamespaceContext.GetPrefix Method
getPrefix(namespaceURI) return value for specified Namespace URIs
Namespace URI parameterprefix value returned
<default Namespace URI>XMLConstants.DEFAULT_NS_PREFIX ("")
bound Namespace URIprefix bound to Namespace URI in the current scope, if multiple prefixes are bound to the Namespace URI in the current scope, a single arbitrary prefix, whose choice is implementation dependent, is returned
unbound Namespace URInull
XMLConstants.XML_NS_URI ("http://www.w3.org/XML/1998/namespace")XMLConstants.XML_NS_PREFIX ("xml")
XMLConstants.XMLNS_ATTRIBUTE_NS_URI ("http://www.w3.org/2000/xmlns/")XMLConstants.XMLNS_ATTRIBUTE ("xmlns")
nullIllegalArgumentException is thrown

Syntax

[Android.Runtime.Register("getPrefix", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetPrefix_Ljava_lang_String_Handler:Javax.Xml.Namespace.INamespaceContextInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string GetPrefix (string namespaceURI)

Parameters

namespaceURI
URI of Namespace to lookup

Returns

Documentation for this section has not yet been entered.

Remarks

getPrefix(namespaceURI) return value for specified Namespace URIs
Namespace URI parameterprefix value returned
<default Namespace URI>XMLConstants.DEFAULT_NS_PREFIX ("")
bound Namespace URIprefix bound to Namespace URI in the current scope, if multiple prefixes are bound to the Namespace URI in the current scope, a single arbitrary prefix, whose choice is implementation dependent, is returned
unbound Namespace URInull
XMLConstants.XML_NS_URI ("http://www.w3.org/XML/1998/namespace")XMLConstants.XML_NS_PREFIX ("xml")
XMLConstants.XMLNS_ATTRIBUTE_NS_URI ("http://www.w3.org/2000/xmlns/")XMLConstants.XMLNS_ATTRIBUTE ("xmlns")
nullIllegalArgumentException is thrown

Get prefix bound to Namespace URI in the current scope.

To get all prefixes bound to a Namespace URI in the current scope, use INamespaceContext.GetPrefixes(string).

When requesting a prefix by Namespace URI, the following table describes the returned prefix value for all Namespace URI values:

[Android Documentation]

Requirements

Namespace: Javax.Xml.Namespace
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8