Added in API level 1

XmlResourceParser


interface XmlResourceParser : XmlPullParser, AttributeSet, AutoCloseable
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
Public methods
abstract Unit

Close this parser.

abstract String!

Inherited functions
Inherited properties

Public methods

close

Added in API level 1
abstract fun close(): Unit

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

Exceptions
java.lang.Exception if this resource cannot be closed

getAttributeNamespace

Added in API level 1
abstract fun getAttributeNamespace(index: Int): String!
Parameters
index Int: Index of the desired attribute, 0...count-1.
Return
String! A String containing the namespace of the attribute, or null if th attribute cannot be found.