Copyright © 2001, 2002 Thai Open Source Software Center Ltd
See the file copying.txt for copying permission.
The file jing.jar
contains a version of the Jing RELAX
NG validator for use with a Java runtime.
The most straightforward way to run this is to install version 1.4 of the Java Runtime Environment (JRE), which can be downloaded here.
Once you have installed JRE 1.4, you can run Jing by using the command:
java -jar jing.jar file.rng file.xml
If file.rng
is a correct schema and
file.xml
is valid with respect to
file.rng
, then Jing will generate no output.
Otherwise, it will generate one or more error messages.
It is also possible to run jing using versions 1.2 or 1.3 or the
Java runtime, but to do so you must first install an implementation of
Java API for XML Processing (JAXP)
1.1 as an extension. One suitable implementation is Crimson,
which can be downloaded here. The
crimson.jar
file must be copied into the
lib/ext
subdirectory of the Java home directory.
If for some reason you do not wish to install JAXP 1.1 as an extension, then you can instead use a command such as:
java -cp jing.jar;crimson.jar com.thaiopensource.relaxng.util.Driver file.rng file.xml
For more information about the features provided by Jing, see this document.