public boolean hasAttribute(String name){
  return elem.hasAttribute(name);
}

public boolean hasAttribute ( String name ) { return elem . hasAttribute ( name ) ; }
determines whether the element has a given attribute .
