Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Formatting output

Jason Hunter

2007-04-06

Replies:

Michael Kay wrote:
>> Whitespace outside the root element is inconsequential in the
>> XML data model.
>
> Which XML data model are you thinking of?
>
> It's consequential in XDM, because you might serialize your document and use
> the resulting file as an external entity, in which case such whitespace
> becomes significant.

Is there an authoritative reference on this?

I ask because, unless I've long been mistaken, SAX suppresses such
whitespace and always has.

-jh-
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.