File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Favorite java-xml mapping tool ?

 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm looking for a good tool capable of xml serialization/deserialization -namely, coverting java classes to XML and vise versa. It may rely on binding of scheam/DTD, but it doesn't have to.


It would be nice to have added features, such as:
- Configure tag names (e.g. change <employees> tag to <workers> even though the java property is called "employees")
- Support for relationships. For instance, if Company holds a list of Employees, and each Employee has a reference back to its parent company, it would be nice if the XML serializer deals with it without going into an infinite loop, and without loosing the relationship on de-serialization.

I've started considering either Castor or Betwix, but haven't had the time yet to have a good look at them. Recommendations would be most appreciated.

Thanx a lot in advance.
 
Jez Nicholson
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Castor
 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
Arun Prasath
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also do the same using JAXB, Quick, or zeus

A good article on different tools is available at this url
[ June 24, 2004: Message edited by: Arun Prasath ]
 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the great link
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Betwixt -- and let me know how it works out.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic