-
May 9th, 2011, 08:47 AM
#1
Help with StaxEventItemWriter, no line breaks
Hello,
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? 
Thanks!
-
May 11th, 2011, 03:25 AM
#2
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
#3
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
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules