File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Product and Other Certifications and the fly likes Document Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Document Object " Watch "Document Object " New topic

Document Object

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Whats the difference between org.w3c.dom.Document Object
and the Document in JDOm api's?
what exactly is JDom

Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
JDOM is simply a non-standard API for processing XML documents in Java.

From the JDOM FAQ:
What is JDOM?

JDOM is, quite simply, a Java representation of an XML document. JDOM provides a way to represent that document for easy and efficient reading, manipulation, and writing. It has a straightforward API, is a lightweight and fast, and is optimized for the Java programmer. It's an alternative to DOM and SAX, although it integrates well with both DOM and SAX.

What is JDOM not?

JDOM is not a wrapper for the W3C's DOM, or another version of DOM. JDOM is a Java-based "document object model" for XML files. JDOM serves the same purpose as DOM, but is easier to use.

JDOM is not an XML parser, like Xerces or Crimson. It is a document object model that uses XML parsers to build documents. JDOM's SAXBuilder class for example uses the SAX events generated by an XML parser to build a JDOM tree. The default XML parser used by JDOM is the JAXP-selected parser, but JDOM can use nearly any parser.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Yo Da

Joined: Jun 10, 2004
Posts: 2

I have a question about JDOM and Javascripts. Is it possible for me to use a javascript in a HTML page that uses JDOM? Or must I create a servlet that handles JDOM?
I agree. Here's the link:
subject: Document Object
It's not a secret anymore!