Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Wednesday, November 24, 2004

FW: replacement for Java2XML?

Interesting! Hadn't heard of that one.
My hope is for XStream, but it's alpha right now and doesn't seem to work on complex objects e.g. Conflation Session.


Java2XML
:) easy to debug - 3 classes
:-( hard to debug - needs better method names
:-( requires config files
:-( only serializes fields with getters and setters


Betwixt
:) continually being improved
:-( hard to debug - dozens of classes
:-( requires config files
:-( only serializes fields with getters and setters


java.beans.XMLEncoder
:) no mapping file required
:-( only serializes fields with getters and setters


XStream
:) no mapping file required
:) serializes private fields (does not require getters and setters)
:-( alpha - I've tried it and it fails to work on complex objects e.g. on ConflationSession





Detailed comparison: http://archive.xstream.codehaus.org/scm/messages/375

0 Comments:

Post a Comment

<< Home