[XML-SIG] CDATA sections still not handled

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Fri, 19 Jan 2001 09:43:13 +0000


>>> Norman Walsh wrote
> In the interest of technical accuracy, I'll point out that there's nothing
> that says a processor is not allowed to use CDATA to escape text. (It might
> be an interesting switch on a serializer: use CDATA for any text node that
> contains more than 5% entity references or something...)

That was something that occurred to me when reading this thread - aside
from the file size issue, it's also going to be faster to write out and
read in the documents. Ok, this is assuming a fairly odd slab of text,
but hey, look at the number of tags in your average web page today - 
including slabs of them as text is going to hurt.

The readability is surely only an issue if you're editing the XML
directly in vi, or whatever, I can't see an XML-aware editor leaving
the text as entities...

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.