public int toInt(Element el,String attributeName,int defaultValue){
  String value=el.getAttribute(attributeName);
  if (value == null)   return defaultValue;
  int intValue=Caster.toIntValue(value,Integer.MIN_VALUE);
  if (intValue == Integer.MIN_VALUE)   return defaultValue;
  return intValue;
}

public int toInt ( Element el , String attributeName , int defaultValue ) { String value = el . getAttribute ( attributeName ) ; if ( value == null ) return defaultValue ; int intValue = Caster . toIntValue ( value , Integer . MIN_VALUE ) ; if ( intValue == Integer . MIN_VALUE ) return defaultValue ; return intValue ; }
reads a xml element attribute ans cast it to a int value
