public void updateAttribute(String name,String value){
  updateAttribute(name,value,true);
}

public void updateAttribute ( String name , String value ) { updateAttribute ( name , value , true ) ; }
updates the value of the an attribute identified by the given name . if this attribute is not present , the value is added to the attribute list at the end of the already present attributes . note that it is not possible to add an attribute in the middle of the attribute list if already certain other attributes are present . one way to work around this limitation is to remove all attributes from this element and then add them in the required order as necessary .
