[lxml-dev] doctype declarations in XML output

Raymond Wiker rwiker at gmail.com
Thu Oct 19 10:53:20 CEST 2006


Hi. I've just started using Python 2.5 and lxml.etree, and am very
happy so far - with this combination, I have an easy-to-use XML
solution that includes good XPath and XSLT support.

One question: is it possible to add doctype definitions to the output?
I have not been able to find anything about this in the documentation,
and I cannot see any references to xmlCreateIntSubset or xmlNewDtd in
the source code. These should be trivial to add, as far as I can see.


More information about the lxml-dev mailing list