Results 1 to 3 of 3

Thread: XStreamMarshaller single-lined result

  1. #1
    pablo Guest

    Default 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 at 10:21 AM.

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote 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.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •