Minidom output of XML escaped characters

Derek Basch dbasch at yahoo.com
Thu Mar 24 20:54:45 EST 2005


Hello,

If I want minidom to output XHTML that includes normally XML escaped
characters how would I do it?

For instance if I use doc.createCDATASection() I get:

<![CDATA[<!--#include virtual="/top.html" -->]]>

and without the CDATASection:

<!--#include virtual="/top.html" -->

when I really need:

<!--#include virtual="/top.html" -->

Any suggestions?

Thanks,
Derek Basch




More information about the Python-list mailing list