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 ?
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.