If you use JDOM, you will wind up with a Document object. You can either use a SAXParser (usually this is the best way to go if your input is an XML file) or a DOMParser (if you already have the DOM Object).
With a Document, you can easily edit: - change the text string in an element - add new elements or attributes - delete elements or attributes - change the contents of an attribute
There is no need to use JDOM - still a non-standard API. The standard toolkit in the Java SDK since version 1.4 gives you all you need to change, add or remove Elements, Nodes and attributes in a org.w3c.dom.Document object. Bill
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com