<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Note that the JDOM SAXBuilder will incorporate ignorable whitespace into your JDOM tree (i.e. when loading an XML file) as text "nodes" filled with whitespace by default. You must invoke SAXBuilder#setIgnoringElementContentWhitespace(boolean) with true to ensure that, when using a validating parser, ignorable whilespace is ignored.<BR>
<BR>
Phil :n)<BR>
<BR>
On Thu, 2004-02-12 at 15:26, Elliotte Rusty Harold wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>At 8:00 AM -0500 2/12/04, Rolf Lear wrote:
>You have a bunch of problems ....
>
>Firstly, white-space in XML has no meaning unless specifically requested
>(xml:space="preserve"). Thus, the following two XML documents are
>equivalent:
><root><element>text</element></root>
>and
><root>
> <element>text</element>
></root>
>
This statement is false. The two document above are *not* equivalent,
at least at the level of XML.
Conformant XML parsers preserve and report all white space in XML
content (i.e. outside of tags) regardless of the setting of
xml:space, or its presence or absence. The interpretation of that
white space is an aplicaiton level decision made by each program that
reads the XML through a parser, as in the interpreation of any other
non-whitespace data. See Chapter 10 of Effective XML for more
elaboration of this point.</I></FONT></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Phil Weighill-Smith <<A HREF="mailto:phil.weighill-smith@volantis.com"><U>phil.weighill-smith@volantis.com</U></A>><BR>
Volantis Systems
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>