CIT041X Index > Using the XML Disc - Windows

Using the XML Disc - Windows

In this explanation, we will presume that you're putting everything on your C: drive. If you want to use a different drive, that's fine; you'll just have to “translate” the drive letter in these instructions.

First, copy the xmljar directory from the CD-ROM to your C: drive.

Note also that the version numbers for some of the packages on the disc may be greater than those installed at Evergreen Valley; your disc contains the most recent versions.

All of the XML tools on this disc require Java 1.3 or above. If you don't have Java installed on your system, go to the windows directory on the CD-ROM and double-click the icon labelled j2sdk-1_4_2-windows-i586.exe. This will install the Java development environment on your machine. (Depending on how your system is set up, you may not see the .exe in your file manager window.)

Now you must modify the batch files to work on your system. As instructed on that page, you'll copy and paste the commands into a file that you'll save on your system. However, the commands you copied are set up for the computers at Evergreen Valley, where the xmljar directory is on the F: drive. That means you'll have to go through and change all the F: to C: to match the setup on your machine. Thus, the wellformed.bat file would look like this, presuming that you had the xmljar directory on the C: drive.

echo off
java -cp c:\xmljar\xerces-2_6_2\xercesImpl.jar;c:\xmljar\xerces-2_6_2\xmlParserAPIs.jar;c:\xmljar\xerces-2_6_2\xercesSamples.jar dom.Counter %1

Note: the version number (2_6_2) may change depending upon how recent a disc you have received.

What's On The Disc

This section is provided for those folks who just have to know what is on the disc. Thus, it's going to use a lot of terminology that hasn't been explained in the class yet. Don't worry; you don't have to read this section to use the tools.

The xmljar directory


The Xerces XML parser. This is the tool used to check for well-formedness and validity with DTDs


Sun's Multi-Schema Validator. This is the tool used to check XML files for validity in conjunction with Relax NG grammars.


The Xalan transformation program. This is the tool that we will use to transform XML to XHTML.


This utility lets you type XPath expressions and see which nodes in an XML document match that expression. The xpathvis.bat batch file is set up to run to the program on the computers at Evergreen Valley.


A tool for converting documents from XSL Formatting Objects (a page layout markup language) to PDF. See the lecture notes and the book for more information about XSL Formatting Objects.


A set of tools for viewing and manipulating Scalable Vector Graphics (SVG) files. You can run it with this command on Windows:

java -jar C:\xmljar\batik-1.5\batik-squiggle.jar

This directory contains jedit, a Java-based text editor. It is designed for writing programs, but it will do great for XML documents.


Another tool used to validate XML files in conjunction with Relax NG. We don't use this one in the course.


A Java servlets implementation; we won't need it in this class.

The windows directory


The Java Software Development Kit.


Mozilla 1.4. Double-click the icon to start the install process.

A smaller version of the Mozilla browser. Unzip the file, and then go into the resulting directory and double-click the MozillaFirebird.exe icon.