public String getAttribute ( String name , String def ) { String value = dom . getAttribute ( name ) ; if ( ( value == null ) || ( value . length ( ) == 0 ) ) { return def ; } return value ; }
Get the value specified for a given attribute on this element