question: protected int parseIntAttr ( XmlPullParser parser , String name ) { try { String value = parser . getAttributeValue ( null , name ) ; if ( value != null ) { return Integer . parseInt ( value ) ; } } catch ( NumberFormatException e ) { } return 0 ; }
target:  Parse an integer value from an XML attribute