public boolean toBoolean(Element el,String attributeName,boolean defaultValue){
  String value=el.getAttribute(attributeName);
  if (value == null)   return defaultValue;
  return Caster.toBooleanValue(value,false);
}

public boolean toBoolean ( Element el , String attributeName , boolean defaultValue ) { String value = el . getAttribute ( attributeName ) ; if ( value == null ) return defaultValue ; return Caster . toBooleanValue ( value , false ) ; }
reads a xml element attribute ans cast it to a boolean value
