[jdom-interest] formatting XML document

Brett McLaughlin brett at newInstance.com
Wed Mar 28 12:36:09 PST 2001

You probably want:

XMLOutputter outputter = new XMLOutputter("  ", true);

which uses two-space indents and adds newlines to the output.

----- Original Message -----
From: "Palaniappan, Krishnasamy" <PalaniK at diebold.com>
To: <jdom-interest at jdom.org>
Sent: Wednesday, March 28, 2001 2:24 PM
Subject: [jdom-interest] formatting XML document

> Hi,
> Could someone please tell me how I can format the output XML document
using JDOM? Currently, the entire XML document is unformatted (i.e. all the
tags are in one line).
> Thanks,
> krish
> _______________________________________________
> To control your jdom-interest membership:

More information about the jdom-interest mailing list