Org.XmlPull.V1.IXmlSerializer.GetPrefix Method
Return namespace that corresponds to given prefix If there is no prefix bound to this namespace return null but if generatePrefix is false then return generated prefix.

Syntax

[Android.Runtime.Register("getPrefix", "(Ljava/lang/String;Z)Ljava/lang/String;", "GetGetPrefix_Ljava_lang_String_ZHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string GetPrefix (string namespace, bool generatePrefix)

Parameters

namespace
Documentation for this section has not yet been entered.
generatePrefix
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentException

Remarks

Return namespace that corresponds to given prefix If there is no prefix bound to this namespace return null but if generatePrefix is false then return generated prefix.

NOTE: if the prefix is empty string "" and default namespace is bound to this prefix then empty string ("") is returned.

NOTE: prefixes "xml" and "xmlns" are already bound will have values as defined

[Android Documentation]

Requirements

Namespace: Org.XmlPull.V1
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1