Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDOM vs Castor

 
purvi dholakia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to XML and Related Technologies.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic