users@jaxb.java.net

Re: marshalling formatted output

From: David F. Wall <dwall_at_foliage.com>
Date: Thu, 08 May 2003 07:03:35 -0400

> -----Original Message-----
> From: Discussion list for the Java Architecture for XML Binding
> [mailto:JAXB-INTEREST_at_JAVA.SUN.COM]On Behalf Of Mark D. Hansen
> Sent: Thursday, May 08, 2003 2:45 AM
> To: JAXB-INTEREST_at_JAVA.SUN.COM
> Subject: marshalling formatted output
>
>
> Does the "jaxb.formatted.output" property work in the RI Marshaller? I
> am setting it to "TRUE", but not getting any line breaks or formatting
> of any kind.

I'm getting line breaks, but no indentation. I'm also getting Unix-style
line breaks (just LF) rather than Windows-style (CR/LF) regardless of what
system I'm on. That's
all right for my purposes, but I think if you want something nicer you're
going to have to pump the output of the marshaller through a more dedicated
XML formatter.

DFW