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