users@jaxb.java.net

Re: Formatting of XML marshalled from content

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 16 Jun 2003 07:49:27 -0700

> Is it possible, that when the flag for the marshaller to format XML is set,
> that it is not using the value of line.separator, but always using \n?
>
> (Note: This is under JAXB 1.0)

Sounds like you can override java.io.Writer and implement that logic.
Or otherwise you could also use an alternative XML writer. Search the
archive for how to do this.

And I'm curious why you prefer to use LF alone.


--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>