minidom and DTD

"Martin v. Löwis" martin at v.loewis.de
Mon May 23 09:12:02 EDT 2005


Laszlo Zsolt Nagy wrote:
> How can I put the
> 
> <!DOCTYPE collection SYSTEM "recipes.dtd">
> 
> thing into an XML created by xml.dom.minidom?

You should put a DocumentType node into your
DocumentNode, and pass a qualifiedName of
"collection" and a systemId of "recipes.dtd"
to the createDocumentType call.

Regards,
Martin



More information about the Python-list mailing list