minidom and DTD
Laszlo Zsolt Nagy
gandalf at geochemsource.com
Mon May 23 10:04:53 EDT 2005
Martin v. Löwis wrote:
>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.
>
>
That worked, thank you.
More information about the Python-list
mailing list