470,580 Members | 2,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,580 developers. It's quick & easy.

minidom and DTD


Hi All,

How can I put the

<!DOCTYPE collection SYSTEM "recipes.dtd">

thing into an XML created by xml.dom.minidom?

Of course I can parse the generated XML file and insert the DOCTYPE string
but there must be a standard way to do this...

Best,

Laci 2.0
Jul 19 '05 #1
2 2430
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
Jul 19 '05 #2
Martin v. Lwis 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.
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by xtian | last post: by
3 posts views Thread by Sunil Movva | last post: by
5 posts views Thread by Skip Montanaro | last post: by
5 posts views Thread by Mike McGavin | last post: by
6 posts views Thread by Horst Gutmann | last post: by
4 posts views Thread by webdev | last post: by
reply views Thread by Gary | last post: by
3 posts views Thread by aine_canby | last post: by
2 posts views Thread by ashmir.d | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.