[rfc-i] CDATA, was: Fwd: New Version Notification for draft-hoffman-xml2rfc-06.txt
Dale R. Worley
worley at ariadne.com
Wed Apr 30 09:19:36 PDT 2014
> From: Paul Kyzivat <pkyzivat at alum.mit.edu>
> I have had occasion to include blocks of XML as artwork in a draft.
> Doing this using escaping is really unpleasant. Using CDATA helps a lot.
> But of course you can still get in trouble with ]]>. I wish there was
> some better solution for those cases, that would allow copy/paste of the
> xml source.
As Paul Hoffman noted, you can clean up the copy&paste by replacing
throughout. Your editor should have a command that can do that. All
solutions will require escaping *something*, because otherwise there's
no way to detect the end of the text to be interpreted literally.
More information about the rfc-interest