Results 1 to 4 of 4

Thread: Help with StaxEventItemWriter, no line breaks

  1. #1
    Join Date
    Feb 2011
    Posts
    6

    Default 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. #2
    Join Date
    Dec 2005
    Location
    Lyon, France
    Posts
    311

    Default

    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.

  3. #3
    Join Date
    Feb 2011
    Posts
    6

    Default

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

  4. #4
    Join Date
    Dec 2005
    Location
    Lyon, France
    Posts
    311

    Default

    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
  •