Issue 13795: CDATA Element missing (original) (raw)

Note that there is no "need" to emit CDATA section: it's just another method to write data, just like in Python "\x41" and "A" are not distinct.

The workaround there is a hack, since it redefines an "internal" method _write(). This function is an implementation detail, and changed in newer releases. I posted another hack on the stackoverflow page above, that works for python 3.2.