Marcos Placona
Marcos Placona
Marcos an experienced Developer Relations leader turned solopreneur, GDE and in ❤️ with Open Source
~1 min read

Categories

  • Technology

I’ve used this DTD generator tool a long time ago, but today I had to use it again, so I thought I should put an entry on my blog about it and keep it archived for future reference.

Download the file dtdgen.jar and copy it to your [java_installation]jrelibext (assuming it’s on your classpath)

Test to see if you can run java stuff by opening a command line and running: 

java

You should get some usage example text.

 

 

If you do, you’re ready to generate DTD’s.

Copy your XML file to the desired folder and run the following script:

java DTDGenerator “path_to_my_xml_file.xml”>”path_to_my_generated_dtd_file.dtd”