Tim van Erven <[EMAIL PROTECTED]> wrote:

In the process a doctype is added automatically.

Yeah, 4DOM will do that. A null doctype is added at parse-time, for some reason.


You can throw the doctype node out after parsing or before printing:

  if document.doctype is not None:
    document.removeChild(document.doctype)

or use one of the other DOM libraries that does not exhibit this behaviour.

--
Andrew Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
_______________________________________________
XML-SIG maillist  -  XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig

Reply via email to