Udostępnij za pośrednictwem


IXmlPullParser.GetNamespaceUri(Int32) Method

Definition

Returns the namespace URI for the given position in the namespace stack If the position is out of range, an exception is thrown.

[Android.Runtime.Register("getNamespaceUri", "(I)Ljava/lang/String;", "GetGetNamespaceUri_IHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetNamespaceUri (int pos);
[<Android.Runtime.Register("getNamespaceUri", "(I)Ljava/lang/String;", "GetGetNamespaceUri_IHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNamespaceUri : int -> string

Parameters

pos
Int32

Returns

Attributes

Exceptions

Remarks

Returns the namespace URI for the given position in the namespace stack If the position is out of range, an exception is thrown.

<b>NOTE:</b> when parser is on END_TAG then namespace prefixes that were declared in corresponding START_TAG are still accessible even though they are not in scope

Java documentation for org.xmlpull.v1.XmlPullParser.getNamespaceUri(int).

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