public String toString(Element el,String attributeName,String defaultValue){
  String value=el.getAttribute(attributeName);
  return (value == null) ? defaultValue : value;
}

public String toString ( Element el , String attributeName , String defaultValue ) { String value = el . getAttribute ( attributeName ) ; return ( value == null ) ? defaultValue : value ; }
reads a xml element attribute ans cast it to a string
