Quick Method Mapping

JDOMiDOM
Element.getName Element.getName

JDOM use the local name, while iDOM uses the tag name.

new SAXBuilder() new SAXBuilder(true, false)
Element.getContent, getChildren Element.children

JDOM have a 'seperate' list of elements called children and all child items called content. In iDOM, there is only one list called children.

Also, String is no longer used as a child of Element. Instead, use Text.

Notice that the content of an element is a unique feature of iDOM that is nothing to do with JDOM's content.

Element.getChildren(String name...) Element.getElements(...)
Element.getChildText, getChildTextTrim Element.getElementValue(.., boolean trim)

Major Differences