[jdom-interest] Attribute/CDATA question

Tom Bradford bradford at dbxmlgroup.com
Wed May 23 12:53:02 PDT 2001

"Kirschen, David" wrote:
> 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 "]]>":]

Perhaps it should say 'anywhere parsed character data may occur'.  As
far as XML is concerned (I'm not sure if this is true for JDOM),
attributes can only contain text and entity references, so you can
create an entity that contains a CDATA section and reference it inside
of an attribute value.

Tom Bradford --- The dbXML Project --- http://www.dbxml.org/
We store your XML data a hell of a lot better than /dev/null

More information about the jdom-interest mailing list