File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes JDOM vs Castor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM vs Castor" Watch "JDOM vs Castor" New topic

JDOM vs Castor

purvi dholakia

Joined: May 28, 2003
Posts: 1
I am working on an application wherein we need to read from an XML file. we have developed the classes for reading from and input XML file using JDOM and now we come to know that we can also use Castor for this.
Can anyone please rule out the pros and cons of using either of them ?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Moving this to XML and Related Technologies.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13027
What do you need to do with the data in the XML file? How big is the file?
The answers to these questions would appear to control the choice of the technique.
Pavel Halas
Ranch Hand

Joined: Jul 05, 2003
Posts: 35
JDOM is the implementation of XML only. You should write your own code to load / save your data.
Castor is a tool that handles difficult data manipulation using mapping between objects and (not only) xml.
Conclusion is trivial. For simple application use JDOM. If you're doing some kind of so called enterprise code, you'll better invest your time to understand Castor technologie.
I agree. Here's the link:
subject: JDOM vs Castor
jQuery in Action, 3rd edition