XmlResourceParser


public interface XmlResourceParser
implements AttributeSet, AutoCloseable, XmlPullParser

android.content.res.XmlResourceParser


The XML parsing interface returned for an XML resource. This is a standard XmlPullParser interface but also extends AttributeSet and adds an additional close() method for the client to indicate when it is done reading the resource.

Summary

Inherited constants

Inherited fields

Public methods

abstract void close()

Close this parser.

abstract String getAttributeNamespace(int index)

Returns the namespace of the specified attribute.

Inherited methods

Public methods

close

Added in API level 1
public abstract void close ()

Close this parser. Calls on the interface are no longer valid after this call.

getAttributeNamespace

Added in API level 1
public abstract String getAttributeNamespace (int index)

Returns the namespace of the specified attribute.

See also XmlPullParser.getAttributeNamespace(), which this method corresponds to when parsing a compiled XML file.

Parameters
index int: Index of the desired attribute, 0...count-1.

Returns
String A String containing the namespace of the attribute, or null if th attribute cannot be found.