Hi, I currently have a String with this value: String s = "<item xsi:type=\"xsd:string\">hello</item>"; Now I want to add an attribute like this: <item soap-enc :position="" xsi:type="xsd:string" >hello</item> What's is the simplest way to do this ? The element name "item" is variable. So trying to do a string replace over "<item " with "soap-enc :position=\"\"" will not work all the time. I do not specifically prefer a DOM/SAX solution; even a simple string manipulation is fine with me. Thanks for answering. Pho [This message has been edited by Ajith Kallambella (edited August 01, 2001).]
subject: What's the simplest way to adding an attribute ?