[jdom-interest] How to omit the DOCTYPE declaration?

Jason Hunter jhunter at collab.net
Fri Jan 5 12:03:44 PST 2001


Alessandro Marcellini wrote:
> 
> Hi,
> I'm using JDOM-b5 on jdk1.1.8, to produce a Log File.
> I don't need a DOCTYPE Declaration, but I see that
> when I create my document a DOCTYPE declaration
> is automatically added (<!DOCTYPE XLog:log>). How can I avoid this
> behaviour?

Set the doc type to null, and it won't output.

Meanwhile, who's setting it to something other than null?

-jh-



More information about the jdom-interest mailing list