CDATA sections not valid in element content

Tim Bray tbray at
Thu Jun 17 22:10:43 BST 1999

At 11:36 AM 6/17/99 -0700, David Brownell wrote:
>> Clause 3.2.1 makes it clear that whitespace in element-content-model
>> elements must match the production S, which a CDATA section does not.
>Doesn't make it clear to me!  :-)

This a known erratum in the XML spec. The public errata doc, when it
is updated (Real Soon Now) will say that an empty or space-filled 
CDATA section in an element with an element content declaration is *not*
valid; the justification being that this flies in the face of the
intended use of CDATA sections, per the first paragraph of section 2.7.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list