[jdom-interest] XMLOutputter
Corcos Igal
CorcosI at BanqueLaurentienne.ca
Mon Feb 26 13:11:24 PST 2001
Has anyone used the XMLOutputter class without specifying any parameters and
found that the supposed default options are not enforced.?
When I specify the following:
Document newDoc = new Document( elmRoot );
XMLOutputter fmt = new XMLOutputter();
fmt.output(newDoc, System.out);
My XML gets output all on one line, but when I change the second to last
line to:
XMLOutputter fmt = new XMLOutputter(" ", true);
My XML gets output with the correct formatting (i.e. 2 space indent and new
line feeds on).
Shouldn't it print this way without having to specify the parameters?
Igal Corcos.
More information about the jdom-interest
mailing list