users@jaxb.java.net

Re: Prettier printing

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 14 Feb 2006 11:11:16 -0800

Dierikx, Marc wrote:
> My generated xml file contains elements without data that do only have
> attributes. They are serialized as
> <blah att1="..." attn="...">
> </blah>
> The file should be human readable, but is quite large. For better
> readability, I'd prefer to have it serialized on one line, and
> preferrably in on tag only, so
> <blah att1="..." attn="..."/>
> Is this possible?

Yes. Search the e-mail archive with "DataWriter" and you'll find more
than a few references.

It would be nice to do this by default, probably.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com