Tools
that can be used to convert XML to DTD
Almost
all of the xml editors that are available in the market would do the
job of generating a dtd document from an existing xml document. Instead
of creating a dtd from the scratch, it is easy to generate one for an
existing xml document.
_______________________________________________
For
example the tool Stylus Studio has a tab called schema while you edit
an xml document. If you click that tab, it will prompt you generate
a dtd or schema of the xml document if you don't have one already for
that document.
Apart
from that you are also prompted to select either an internal dtd or
and external dtd. If internal the dtd generated is placed on top the
xml file and if external an external file with .dtd extension is created
and a link to that is placed on top of the xml file using !DOCTYPE.
XMLSpy,
Xselerator, Cooktop and other xml editors that are available in the
market will do the generation of dtd from xml document.
Search
for the term 'xml editors' in any search engine and you are sure to
get a list of tools available for editing and generating xml and dtd.