November 2002
Intermediate to advanced
1120 pages
21h 2m
English
One of my favorite things about JDOM is that, 90 percent of the time, it works exactly the way I expect it to work. I don't have to look at the documentation because my best guess is almost always right. This is only sometimes true for SAX and almost never true for DOM. For example, suppose you wanted to create the JDOM representation of this element:
<fibonacci/>
The simplest, most obvious solution I can imagine is this:
Element element = new Element("fibonacci");
Guess what? That's exactly how you do create an element in JDOM. Compare that with the DOM approach:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); DOMImplementation ...
Read now
Unlock full access