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

Filed under:
|

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:

  1. JAXB - fairly heavy weight with annotations required on classes and also an ObjectFactory class and/or a jaxb.index file

  2. Simple - requires annotations but no other config classes/files. Unfortunately it can't serialize Sets.

  3. XStream - no annotations etc. required, but doesn't support generics

Does anyone else have any suggestions?

© Stack Overflow or respective owner

Related posts about java

Related posts about xml-serialization