Added in API level 1

XmlResourceParser


interface XmlResourceParser : 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
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: zero-based index of attribute
Return
String! attribute namespace, empty string ("") is returned if namespaces processing is not enabled or namespaces processing is enabled but attribute has no namespace (it has no prefix).