getAttributePrefix

abstract fun getAttributePrefix(index: Int): String

Returns the prefix of the specified attribute.

Returns an empty string if the element has no prefix. If namespaces are disabled it will always return an empty string.

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

Return

attribute prefix or null if namespaces processing is not enabled.

Parameters

index

zero-based index of attribute