Multiple DTD

Armel HERVE

Usenet Archive
Joined
Jul 16, 2003
Messages
15
Reaction score
0
Hello every body,

I need to construct an XML file using multiple DTDs.
How can I use namespace to avoid conflict name if the 2 DTD define same ELEMENT ?

Thanks for your answers

Armel
 

Bob Foster

Usenet Archive
Joined
Aug 14, 2002
Messages
220
Reaction score
0
Armel HERVE said:
I need to construct an XML file using multiple DTDs.
How can I use namespace to avoid conflict name if the 2 DTD define same ELEMENT ?

You can't. DTDs don't know anything about namespaces. The "poor man's namespace" trick involves modifying (at least one of) the DTDs so all element names from a given DTD can be given namespace-looking prefixes, but it requires quite a lot of DTD editing.

Bob
 

Armel HERVE

Usenet Archive
Joined
Jul 16, 2003
Messages
15
Reaction score
0
You can't. DTDs don't know anything about namespaces. The "poor man's namespace" trick involves modifying (at least one of) the DTDs so all element names from a given DTD can be given namespace-looking prefixes, but it requires quite a lot of DTD editing.

Bob
Thanks for your answer.
So can I do what I want ? Have I to put all DTD into one file and rename some ELEMENTS ?
What is the best practice ?

Thanks

Armel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top