[jdom-interest] XML output format question.

Guy Nirpaz guyn at tantian.com
Tue Apr 3 22:54:29 PDT 2001

Hi Danny,
The XMLOutputter has various methods that you can use, like :
.setIndent (..)
.setLineSeparator (..)
.setNewLines (..)
You can also construct the XMLOutputter with those parameters :
String spacing = "    " ;
boolean indent = true ;
XMLOutputter out = new XMLOutputter ( spacing , indent ) ;
- Guy

-----Original Message-----
From: Danny J. [mailto:danny.james at home.com]
Sent: Wed, April 04, 2001 9:33 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] XML output format question.

    I'm using XMLOutputter to save an XML file via FileWriter. I was
wondering if there was a way to format the XML document. So that I can
use something like Notepad to open it up and still have a semi
understanding of the element's structure instead of a single line of the
document. (don't want to rely on  web browsers like I.E. 5)

More information about the jdom-interest mailing list