To run TreeViewer:
- open up a MS-DOS command line window
- set the path to the jdk\bin directory
- change directory to the latest xerces-1_0_3 directory
- invoke the
TreeViewer
parser
On Windows:
The easiest way to do this is to create a .bat file using the
Notepad editor. Then TreeViewer
can be invoked by double clicking
on the file name or icon. The following command lines assume that
both the jdk and the xerces-1_0_3 directories are located directly below
the c: dirve.
With jdk1.1.8:
 |  |  |
 | set path=c:\jdk1.1.8\bin;%PATH%
set classpath=c:\xerces-1_0_3\xerces-1_0_3.jar;%CLASSPATH%
set classpath=c:\xerces-1_0_3\xerces-1_0_3Samples;%CLASSPATH%;
set classpath=c:\Swing-1.1.1\swingall.jar;%CLASSPATH%;
cd c:\xerces-1_0_3
java dom.TreeViewer data\personal.xml |  |
 |  |  |
With jdk1.2.2:
Swing is included in the Java 2 release and it doesn't required
a separate reference.
 |  |  |
 | set path=c:\jdk1.2.2\bin;%PATH%
set classpath=c:\xerces-1_0_3\xerces-1_0_3.jar;%CLASSPATH%
set classpath=c:\xerces-1_0_3\xerces-1_0_3Samples;%CLASSPATH%;
cd c:\xerces-1_0_3
java dom.TreeViewer data\personal.xml |  |
 |  |  |
 | Parse your own XML file instead of data\personal.xml |