This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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