[jdom-interest] Attribute/CDATA question
bob mcwhirter
bob at werken.com
Wed May 23 16:05:36 PDT 2001
> The assumption is that it is valid XML, since the XML spec
> (http://www.w3.org/TR/2000/REC-xml-20001006) says:
>
> 2.7 CDATA Sections
> [Definition: CDATA sections may occur anywhere character data may occur;
> they are used to escape blocks of text containing characters which would
> otherwise be recognized as markup. CDATA sections begin with the string
> "<![CDATA[" and end with the string "]]>":]
The spec also says:
[Definition: All text that is not markup constitutes the character data
of the document.]
So, methinks you're probably correct in that it should be legal, maybe.
Beats me, truly, though. ;)
-bob
(useless)
More information about the jdom-interest
mailing list