I tried using Spring's XStreamMarshaller instead of using directly XStream.
I realized that the string resulting of marshaller.marshal() is on a single line.
Before, with xstream.toXML(), the result was on several lines, properly indented.
Do you have any clue?
Is it possible to get exactly the same result with XStreamMarshaller than with XStream?
Thanks in advance!