[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CDATA vs. EMPTY
- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- To: xml-dev@lists.xml.org
- Date: Mon, 09 Jul 2001 00:39:57 +0200
Hi,
XML 1.0 SE says: "An element with no content is said to be empty".
Does the following fragment have any content?
<elem><![CDATA[]]></elem>
The Recommendation further reads: "The representation of an empty
element is either a start-tag immediately followed by an end-tag, or an
empty-element tag". This is true for the fragment in it's canonical
representation.
--
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/