- From: Ray Whitmer <ray@imall.com>
- Date: Mon, 17 Aug 1998 15:32:16 -0600
- To: DOM List <www-dom@w3.org>
John Cowan wrote: > Only if your writeOut method is unacceptably naive. The writeOut method for > Text-not-CData objects should emit "<" as "<" and "&" as "&", and the > writeOut method for CData should emit "]]>" as "]]>". Actually, I believe that it is Text-not-CData that needs to emit "]]>" as "]]>" (see [14] in the XML spec, as referenced by [43]). CData needs to replace "]]>" with something like "]]]]><![CDATA[>" because CDATA sections cannot nest. Breaking up the section seems to be the only way to preserve the characters, since > would not be interpreted inside the CDATA section (see section 2.7). Ray Whitmer ray@imall.com
Received on Monday, 17 August 1998 17:32:18 UTC