Comment 5 for bug 199656

Revision history for this message
Philippe Joyez (ubuntu-5-pjoyez) wrote :

CDATA are indeed restored when saving now.

However, when a python extension deep-copies and saves part of the tree where the CDATA structure should be, it is not retrieved in the output.

I see that the bug fix was to add the CDATA tag on output when the node type is XML_CDATA_SECTION_NODE. Is there a way to probe this node type in python, so that my extension adds the CDATA tag where adequate?