[jdom-interest] update attribute

Antonello Dell'Armi A.Dellarmi at ELIS.ORG
Wed Dec 18 13:04:24 PST 2002


In my program each time i need to update an element i have to do:
element.removeAttribute("myatribute");
LinkedList attList = new LinkedList();
Attribute att = new Attribute("myatribute","value");
attList.add(att);
element.setAttributes(attList);
Is there a shortcut? setAttribute(String name , String value) doesn't work...
 
 
Antonello



More information about the jdom-interest mailing list