Two Laptop Bag
The moose likes XML and Related Technologies and the fly likes DOM versus JDOM Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "DOM versus JDOM" Watch "DOM versus JDOM" New topic
Author

DOM versus JDOM

Richard Robbins
Ranch Hand

Joined: Mar 07, 2001
Posts: 66
Are there any advantages to using the org.w3c.dom classes for manipulating XML as opposed to using the newer JDOM?


Richard Robbins is one of the founders of WebsiteTemplateDatabase.com, a resource for free website templates and Photoshop tutorials. He also consults for an online boutique selling baptism dresses and christening gowns.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5781
Even though it sounds misleading, JDOM is not a newer version of DOM. It is a framework built on top of DOM and SAX. You will still need to parse the XML documents using a standard DOM/SAX parser. JDOM only makes navigating through the document tree or manipulating the elements easier by providing a standard Java-based collection interface.
Hope that helps!
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.


Open Group Certified Master IT Architect.
Sun Certified Architect(SCEA).
 
 
subject: DOM versus JDOM
 
Threads others viewed
Simple XSL transformation
XML Parsing problem outside root element
XPath on top of JDOM
Any Java API similar to DataSet in ADO.NET
Need help in replacing a node value
MyEclipse, The Clear Choice