EarthWeb: JDOM: XML Meets Java Meets Open Source | Linux Today

EarthWeb: JDOM: XML Meets Java Meets Open Source

Written By
Web Webster
Web Webster
Jan 8, 2001

“JDOM takes an intuitive approach to modeling an XML document
into a series of Java objects. These objects are then used like any
other Java object to manipulate and modify an XML document.”

“XML is an extensible framework for encapsulating data. Its
widespread usage has depended to a large degree on how various
programming languages could support reading, writing, and
manipulating XML. Standards like DOM and SAX were developed early
on and provide a language-independent API for XML manipulation. As
the technology matures, issues such as performance, ease of use,
and productivity become important. While many consider XML the
universal language for data, there is no such thing as a universal
programming language. Different languages have different
capabilities and are optimized for certain tasks. While DOM and SAX
continue to dominate the development world, new language-specific
APIs are emerging. One such API is JDOM, an open source project
whose goal is to make XML manipulation easier for Java programmers.
This article is an introduction to JDOM.”

“JDOM takes an intuitive approach to XML manipulation. All XML
building blocks (node types) are represented in JDOM as a class.
For example, an element, an attribute, or a processing instruction,
all have a corresponding class in JDOM. Using an underlying SAX or
DOM parser, an XML document is parsed and represented as a Document
object. The root element of the Document object is your key to
gaining access to the rest of the XML document. Since Java
naturally supports object inheritance, you are able to navigate the
object hierarchy representing your XML document and extract the
information you want. There is no event model to follow or DOM tree
nodes to traverse. Your interaction with the XML document is done
via Java objects (something that is very familiar to Java
programmers).”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.