[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

A DTD Generator

  • From: "Michael Kay" <M.H.Kay@e...>
  • To: "Xml-Dev" <xml-dev@i...>
  • Date: Thu, 30 Apr 1998 10:11:58 +0100

dtd generator
If you share my distaste for the syntax of DTDs and would
rather wash the car than sit down to write one, you may be
interested in a little utility I have written called DTDGen.
It takes a well-formed XML document and generates a DTD for
it.

Of course, it has limitations. It is trying to induce
general rules from one example. But I've found it useful in
a number of contexts:

* you can use it to produce a "first cut" DTD which you can
then refine by hand
* you can construct an XML document that exhibits as many
structural features of your document design as possible and
then use DTDGen to generate something close to the "true"
DTD
* you can use it to gain an understanding of the structure
of XML documents that have been published without a DTD (an
example being the XML specification itself)

This is homespun software not a professional product, use it
accordingly. You can download it from
http://home.iclweb.com/icl2/mhkay/dtdgen.zip
You will need an XML parser and SAX 1.0 driver (and of
course a Java 1.1 environment). The download includes java
source and class files (copy these to your classpath) and an
HTML document explaining what it does and what it doesn't.

Let me know of any problems.

Mike Kay



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.