Working with JDom
January 19, 2010
JDom is the simplest interface for working with XML in Java that I've found.
Parsing to a Document
To parse code from a file into a JDom document, use the following code:
SAXBuilder lBuilder = new SAXBuilder(); Document lDocument = lBuilder.build(new FileReader("file.xml")); …