[jdom-interest] XMLoutputter

Phill_Perryman at Mitel.COM Phill_Perryman at Mitel.COM
Fri Feb 6 05:34:57 PST 2004


With the XMLOutputter does it use a live reference to the Format object or
does it copy the values

ie, will this work

Format format = getCompactFormat();
XMLOutputter o = new XMLOutputter(format);
format.setOmitEncoding();

o.output... will it omit the encoding or not.

The reason I ask is I have several places where I create an outputter at
the start (static) and then set its option differently in places in the
code to get the desirable output.

/Phill
IS Dept, Software Engineer.
phill_perryman at mitel.com
http://www.mitel.com
Tel: +44 1291 436023





More information about the jdom-interest mailing list