At 04:51 PM 05/12/2001 +0100, Ravinder Gade wrote:
>can any body suggest me how to generate DTD automatically i.e tools
It's just an easy-to-use front end for the Saxon "DTDGenerator" feature.
(Saxon was developed by Michael Kay.) The general idea is that you feed it
a complete XML document (the more complete, the better); it makes some
generally reasonable inferences about the structure of a valid document and
outputs a DTD based on those inferences.
Of course, since they *are* inferences (however reasonable) you should
assume you'll need to tweak the resulting DTD.
I seem to recall that IBM's alphaWorks has a product like this, too...
yeah, here it is, part of XML Toolkit:
Also check something called XMLOutline, at:
You feed it a text outline of a document's structure, and it converts the
outline to DTD format.
A number of items listed at Ronald Bourret's "XML Database Products" page
are capable of generating a DTD from a database structure. That page is at:
Automatically generated DTDs (no matter the input source) will probably
always need to be human-verified; I wouldn't count on any of these products
to do all the work for you!
John E. Simpson | "I can levitate birds. No one cares."
http://www.flixml.org | (Steven Wright)
XML Q&A: www.xml.com |