Easy XML Serializer for Java
Posted
by sdoca
on Stack Overflow
See other posts from Stack Overflow
or by sdoca
Published on 2010-06-16T20:22:18Z
Indexed on
2010/06/16
20:42 UTC
Read the original article
Hit count: 240
java
|xml-serialization
I'm looking for a way to serialize Java objects into XML for use by a RESTful web service. I don't have an XSD.
I have looked at the following:
JAXB - fairly heavy weight with annotations required on classes and also an ObjectFactory class and/or a jaxb.index file
Simple - requires annotations but no other config classes/files. Unfortunately it can't serialize Sets.
XStream - no annotations etc. required, but doesn't support generics
Does anyone else have any suggestions?
© Stack Overflow or respective owner