[rfc-i] CDATA, was: Fwd: New Version Notification for draft-hoffman-xml2rfc-06.txt
julian.reschke at gmx.de
Tue Apr 29 01:11:25 PDT 2014
On 2014-04-28 21:34, Tony Hansen wrote:
> On 4/28/14, 2:16 PM, Paul Hoffman wrote:
>> Greetings again. As always, thanks for the input on the v3 draft. The
>> changes include:
>> - Pointing out that artwork that contains the string "]]>" also needs
>> to be protected in a CDATA structure
> Good start on this. Unfortunately, it's a bit more tricky than you
> The string "]]>" is problematic both in and out of a CDATA structure.
> The string is not allowed in XML and is a terminator for CDATA, so it
> cannot exist either place.
That is true, but I don't think it's really relevant here.
People who use CDATA frequently think "anything can go in here", and
it's good to warn that this is not the case.
> The solution is to break the string up, such as using multiple CDATA
> blocks, as in this example:
The IMHO better solution is not to use CDATA at all :-)
Best regards, Julian
More information about the rfc-interest