In Java for XML marshalling/unmarshalling one can use JAXB, JIBX, CASTOR, ADB etc. But out of these which is most generic & commonly used? Or is there any other utility available?
views:
410answers:
2
+4
A:
The standard is the JAXB (JSR 222), and the famous project with this name is the reference implementation. Unlike JAXB 1.0, JAXB 2.0 RI is quite good, and I've used it a lot. Other libraries implements the JAXB standard (I think tha Castor and JiBX, but I have no experience with them).
I've also use XStream, which was very easy and simple - it has a proprietary API though.
I don't know of any benchmark other than https://bindmark.dev.java.net/old-index.html - notice it is a 4 year old one. perhaps you can take it's ideas or any usable code it may have and run some tests yourself.
David Rabinowitz
2009-11-23 06:22:30
In some very special cases JAXB's behaviour is rather unpredictable, but on the whole it is very good and useful
Bozho
2009-11-23 07:20:57
What are these special cases?
David Rabinowitz
2009-11-23 08:37:18
The worst I've had with JAXB was how it actually crashed on some malformed XML (it still throws an exception, but not a nice XmlSchemaViolation, more like a SecurityAccessViolation somewhere, names made up cause I can't remember the originals)
wds
2009-11-23 10:59:05
EclipseLink JAXB (MOXY) also implements the JAXB standard, http://www.eclipse.org/eclipselink/moxy.php
Blaise Doughan
2010-07-15 19:14:06