getIntAttributeValue

fun getIntAttributeValue(xpp: XmlPullParser, attributeName: String): Int

Returns the Int value of an attribute of the current start tag.

Return

The Int value of the attribute, or 0 if the current event is not a start tag or if no such attribute was found or if String value cannot be parsed as an Int.

Parameters

xpp

The XmlPullParser to query.

attributeName

The name of the attribute.