Language

XmlPullParserReader.GetAttribute Method

Definition

Overloads

Name Description
GetAttribute(String, String)

Gets an attribute value by local name and namespace URI.

GetAttribute(String)

Gets an attribute value using a qualified name.

GetAttribute(Int32)

Gets a parser attribute value or namespace URI by index.

GetAttribute(String, String)

Gets an attribute value by local name and namespace URI.

public override string? GetAttribute(string localName, string? namespaceName);
override this.GetAttribute : string * string -> string

Parameters

localName
String

The attribute's local name.

namespaceName
String

The namespace URI to use in the lookup.

Returns

The value returned by the parser, which may be null.

Remarks

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

GetAttribute(String)

Gets an attribute value using a qualified name.

public override string? GetAttribute(string name);
override this.GetAttribute : string -> string

Parameters

name
String

The attribute name, optionally with a namespace prefix.

Returns

The value returned by the parser, which may be null.

Remarks

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

GetAttribute(Int32)

Gets a parser attribute value or namespace URI by index.

public override string? GetAttribute(int i);
override this.GetAttribute : int -> string

Parameters

i
Int32

The parser or namespace attribute index.

Returns

The value returned by the parser.

Remarks

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