Announcement Announcement Module
Collapse
No announcement yet.
Help with StaxEventItemWriter, no line breaks Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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.

    Comment


    • #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 :-(

      Comment


      • #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 :-(

        Comment

        Working...
        X