What is the most suitable way to serialize Java classes for XML? I tried JAXB, but it has problems with interfaces and universals. Which solution is the least intrusive but scalable?
I have always had a positive experience with XStream:
http://x-stream.imtqy.com/tutorial.html#to-xml
As you can see, it is easy to use.
I have not actually used XStream with Generics (I used it only for simple classes like JavaBean), but Google seems to suggest that it handle them without problems. e.g. http://techo-ecco.com/blog/xstream-spring-ws-oxm-and-generics/
I would suggest solving problems with the interfaces and generics that you have with JAXB.
JAXB Marshalling and Generics
java.util.List is an interface, and JAXB cannot process interfaces