May 9th, 2011, 08:47 AM
Help with StaxEventItemWriter, no line breaks
I am creating an xml file with the StaxEventItemWriter and it works ok. The only problem I have is that the file that is created contains a single line with all the information on it.
¿Is there a way to insert a line break after each tag?
May 11th, 2011, 03:25 AM
this depends on the marshaller implementation you're using. Marshallers usually provide a flag to set up the way the produced XML should be formatted.
May 11th, 2011, 08:16 AM
I'm actually using XStreamMarshaller. I've read the documentation on http://static.springsource.org/sprin...arshaller.html but I can't find anything related to setting line breaks :-(
May 11th, 2011, 09:17 AM
you should have a look at XStream itself, perhaps there's a setting somewhere to tweak the produced XML. Spring's XStreamMarshaller would certainly lets you use this setting, you just have to find it :-(
Tags for this Thread