users@jaxb.java.net

Re: format of marshalled xml files

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Thu, 27 Feb 2003 11:59:03 -0500

Use Marshaller's setProperty method:

     setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Hanasaki JiJi wrote:
> Anyone know how to output it "pretty"  the default is all on one line.
> --
> =================================================================
> = Management is doing things right; leadership is doing the     =
> =       right things.    - Peter Drucker                        =
> =_______________________________________________________________=
> =     http://www.sun.com/service/sunps/jdc/javacenter.pdf       =
> =  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
> =================================================================