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;
}

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 ; }
parse an integer value from an xml attribute
