pero on anything

February 20th, 2007

CDATA Section within a CDATA (or “How to escape ]]> in CDATA?”)

Using CDATA to embed raw data within XML is a quite convinient feature. But the XML spec lacks the possibility to have a CDATA containing another CDATA or even the string ]]>. So what happens if you put content like this within a CDATA section? Just a ]]> test ]]> Your XML writer or at [...]