Blogger

Delete comment from: Java XML and JSON Binding

said...

Blaise,

I guess the XStream FAQ primarily just needs an update for JAXB 2.0 ;-)

My experience with XStream is that it's great for serializing/deserializing arbitrary object graphs, but it's very hard to make the xml comply to some given schema. JAXB is at times more heavy-weight, but much more powerful as well.

But both by 95% serve the same purpose. I even started a little adapter class that uses XStream as an JAXB implementation... it's yet not much more than a proof of concept, though:

https://messageapi.dev.java.net/source/browse/messageapi/trunk/adapter/src/main/java/com/oneandone/consumer/messageapi/xstream

One thing that annoys me, though, is that the JDK "reference implementation" does not seem to comply to the standard paragraph 8.5.4, which says that Maps have to be supported. MOXy does, but the RI does not... or am I getting something wrong?


-Rüdiger

Oct 26, 2010, 5:15:10 AM


Posted to How Does JAXB Compare to XStream?

Google apps
Main menu