Dec 10th, 2007, 09:17 AM
XStreamMarshaller single-lined result
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!
Last edited by pablo; Dec 10th, 2007 at 10:21 AM.
Dec 11th, 2007, 02:53 PM
Currently, no, because we don't use XStream's PrettyPrintWriter. It is a feature we could add, though. Please create a JIRA issue if you want it implemented.
Originally Posted by pablo
Jan 29th, 2010, 08:34 AM
Has it become possible to define your own formatter or something?
Because instead of one single line, I would like to xml to be cut into pieces of 20K. I can do the same thing by defining an extra step to do this. But then I need more space for my files an it seems to me this is a redundant step.