This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM vs Castor" Watch "JDOM vs Castor" New topic
Author

JDOM vs Castor

purvi dholakia
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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.
Bill
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.
 
Consider Paul's rocket mass heater.
 
subject: JDOM vs Castor
 
Similar Threads
xml handling
Can we generate a XML from XSD using SAX
Urgent help !!!!!!
Dynamically Loading a XML file when the application starts
XML Validation in Castor