Announcement Announcement Module
Collapse
No announcement yet.
XStreamMarshaller single-lined result Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XStreamMarshaller single-lined result

    Hi,

    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!
    Pablo
    Last edited by pablo; Dec 10th, 2007, 11:21 AM.

  • #2
    Originally posted by pablo View Post
    Is it possible to get exactly the same result with XStreamMarshaller than with XStream?
    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.

    Comment


    • #3
      Hi,

      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.

      Comment

      Working...
      X