This directory contains a sample Java file to show how to use the
XML Class Generator.

The following is the list of files and directories:

Makefile - Makefile used to compile and run the demo.

SampleMain.java - A sample application to generate Java source files
                  based on a DTD.

Widl.dtd - A sample DTD.
Widl.xml - A sample XML file based on Widl.dtd.

TestWidl.java - A sample application to construct XML document using
	        the Java source files generated by SampleMain.


To run the sample program, use make target 'demo'.

There are three steps in using the XML Class Generator:

1. Compile and run SampleMain to generate the Java source files.
    - Set the CLASSPATH to contain 'classgen.jar', 'xmlparser.jar',
      and current directory.	
    - javac SampleMain.java
    - java SampleMain -root WIDL Widl.dtd
                  OR
    - java SampleMain Widl.xml

2. Compile the Java source files generated by SampleMain, i.e., BINDING.java,
   CONDITION.java, REGION.java, SERVICE.java, VARIABLE.java, WIDL.java.
    - javac *.java

3. Run the test application to print the XML Document.
    - javac TestWidl.java
    - java TestWidl
