[jdom-interest] SAXbuilder.build Behavior

Brad Morgan Brad.Morgan at e-pubcorp.com
Mon Sep 11 09:18:59 PDT 2000

I have noticed that the Document built by the SAXbuilder is different
depending on the presence or absence of a <!DOCTYPE... in the input XML

I have tried both:
SAXBuilder builder = new SAXBuilder();
SAXBuilder builder = new SAXBuilder(false);

With the <!DOCTYPE I get no white space in the JDOM Document tree and
without the <!DOCTYPE I get the white space in the tree.

After making my changes to the JDOM tree in memory, I now want to use
XMLOutputter to create a new document but of course the appropriate
parameters to use are dependant on which flavor of input I received.

Is this the expected behavior?  If so, what is the proper/best way to
determine how to call XMLOutputter?

Thanks for your prompt replies.

Brad Morgan
e-Publishing Corp.

Email: Brad.Morgan at e-pubcorp.com
Phone: (719)593-7377 x35
Fax: (719)593-2996

e-Publishing Corp. is a BroadVision company
NOTICE: This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the
intended recipient, dissemination of this communication is prohibited. If
you have received this communication in error, please erase all copies of
the message and its attachments and notify us immediately.

More information about the jdom-interest mailing list