getAttributeName

abstract fun getAttributeName(index: Int): String

Returns the local name of the specified attribute if namespaces are enabled or just attribute name if namespaces are disabled.

Throws an IndexOutOfBoundsException if the index is out of range or current event type is not START_TAG.

Return

attribute name (null is never returned)

Parameters

index

zero-based index of attribute