public String consumeRawAttribute(String name){
  if (!elem.hasAttribute(name)) {
    return null;
  }
  String value=elem.getAttribute(name);
  elem.removeAttribute(name);
  return value.trim();
}

public String consumeRawAttribute ( String name ) { if ( ! elem . hasAttribute ( name ) ) { return null ; } String value = elem . getAttribute ( name ) ; elem . removeAttribute ( name ) ; return value . trim ( ) ; }
consumes the given attribute and returns its trimmed value , or null if it was unset . the returned string is not escaped .
