JDOM is a Java library for manipulating XML data. It is an alternative and complement to the official Java API that was developed by Jason Hunter and Brett McLaughlin and is now an implemented API for working with XML in Java. Of trademark issues, it is not an acronym. JDOM integrates the advantages and SAX and DOM APIs in a Java class.
Similar to the Document Object Model ( DOM abbreviation ), an XML document is represented as a tree in the main memory, but JDOM was developed specifically for Java. Therefore, Java classes are used - for example, in a JDOM XML node is represented not as a "node", but by a specific Java class.
JDOM provides the ability to JDOM tree as a text document ( " XMLOutputter ", ie as an XML document ) output, which is not even part of the SAX standard, and up to and including the Level 2 DOM. Furthermore, the " SAXOutputter " can output the document in the form of SAX events as they would be generated by SAX while parsing the document or JDOM tree into a DOM tree convert ( " DOM Outputter ").
This is the root object (and thus the entry point for navigation) of the JDOM tree that contains the root element, the document type, and processing instructions.
This class represents the information for items ( for example, the parent element ( " parent" ), the element name ("name" ) and a list of attributes ( "attributes " ) ).
Comments ( "text") with the element the comment contained ( "parent ").
Compiler -specific data.
To be able to define namespaces for elements and attributes.
Accommodates the DocType declaration for the head of the XML data.
Character -based content.