Easy XML Serializer for Java
- by sdoca
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?