Share via


IAttributes.GetValue Method

Definition

Overloads

GetValue(Int32)

Look up an attribute's value by index.

GetValue(String)

Look up an attribute's value by XML qualified (prefixed) name.

GetValue(String, String)

Look up an attribute's value by Namespace name.

GetValue(Int32)

Look up an attribute's value by index.

[Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetValue (int index);
[<Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetValue : int -> string

Parameters

index
Int32

The attribute index (zero-based).

Returns

The attribute's value as a string, or null if the index is out of range.

Attributes

Remarks

Look up an attribute's value by index.

If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.

Java documentation for org.xml.sax.Attributes.getValue(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.

See also

Applies to

GetValue(String)

Look up an attribute's value by XML qualified (prefixed) name.

[Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetValue (string? qName);
[<Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetValue : string -> string

Parameters

qName
String

The XML qualified name.

Returns

The attribute value as a string, or null if the attribute is not in the list or if qualified names are not available.

Attributes

Remarks

Look up an attribute's value by XML qualified (prefixed) name.

See #getValue(int) getValue(int) for a description of the possible values.

Java documentation for org.xml.sax.Attributes.getValue(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

GetValue(String, String)

Look up an attribute's value by Namespace name.

[Android.Runtime.Register("getValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetValue (string? uri, string? localName);
[<Android.Runtime.Register("getValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetValue : string * string -> string

Parameters

uri
String

The Namespace URI, or the empty String if the name has no Namespace URI.

localName
String

The local name of the attribute.

Returns

The attribute value as a string, or null if the attribute is not in the list.

Attributes

Remarks

Look up an attribute's value by Namespace name.

See #getValue(int) getValue(int) for a description of the possible values.

Java documentation for org.xml.sax.Attributes.getValue(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