Derek Basch wrote:

> 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:
>
> &lt;!--#include virtual="/top.html" -->
>
> when I really need:
>
> <!--#include virtual="/top.html" -->

that's an XML comment.  if you want to insert a comment, insert a
comment:

    elem.appendChild(
        mydoc.createComment('#include virtual="/top.html"')
    )

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to