Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] CDATA sections

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <jcowan AT reutershealth.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: "New, Cecil \(GE Trans\)" <cecil.new AT ae.ge.com>, XOM-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] CDATA sections
  • Date: Tue, 4 Jan 2005 14:00:44 -0500

Elliotte Harold scripsit:

> >As long as there is no DTD, then a CDATA seems unecessary.
> >
> >But if there is a DTD and it does not allow mixed content for <content>,
> >then a CDATA section would effectively sidestep validation issues...
>
> Again, you are asking to do exactly what I maintain is a horrible idea.
> Content in CDATA is *not* markup , even if it looks like it is.

I agree. The proper use of CDATA (and the use I was making of it) was to
write character data that happens to contain lots of < characters in such
a way that it remains readable.

IOW, the end result was to display the snippets of HTML *as* HTML, not
render them.

--
John Cowan jcowan AT reutershealth.com www.reutershealth.com ccil.org/~cowan
Dievas dave dantis; Dievas duos duonos --Lithuanian proverb
Deus dedit dentes; deus dabit panem --Latin version thereof
Deity donated dentition;
deity'll donate doughnuts --English version by Muke
Tever
God gave gums; God'll give granary --Version by Mat McVeagh




Archive powered by MHonArc 2.6.24.

Top of Page