How
to create a DTD in XML
You can
easily create dtd's if you are using a good xml or dtd editor. Some
of the leading products used for xml editing also have the feature of
creating dtd's from the scratch.
_______________________________________________
The
code completion features available in such editors would come in handy
to you to create dtd. If you already have an xml document that does
not have a dtd corresponding to it, then you can generate a dtd for
that document using the xml editors like XMLSpy, Xselerator, and Cooktop
etc. based on the xml documents structure the editor will generate a
dtd for you. It is just that simple!
The other
option is to create your own dtd file from the scratch for this you
should know the grammar of dtd. The file you create should have an extension
'.dtd'. if you are using a good dtd editor then you can always find
help in writing the syntax of dtd like, choice, sequence, optional and
others.
Buttons
to add the modifiers to the document are available and you need not
remember the syntax of all. This is the greatest advantage of using
a good dtd or xml editor. Try creating one using them!