Home Spui Madelief Linebreaking MathJax-edit XProc Madelief-XML weblog moerasbos waarnemingslijsten


Spui stands for SAX Parser User Interface, but it is also the name of a well-known little square in the center of Amsterdam.

Spui contains a graphical user interface, a command line interface and an error reporting error handler for any validating SAX2 java parser. With this combination you can validate an XML file against a DTD or a W3C XML Schema (the latter with Xerces2-J only). In addition, the package contains two content handlers:

You need to have a validating SAX2 compliant java parser, and the JAXP classes, which were probably installed with the parser.

Spui comes in two alternative packages:

Installation: Download the jar file of your choice, Spui.jar or Spui-cli.jar, and put it in your class path.

Running the graphical user interface:

Running the command line interface:

In java 1.4, you may have xml-apis.jar, xercesImpl.jar and resolver.jar in a directory in the java.endorsed.dirs path, instead of the places described above.

If you have downloaded the Spui-cli package, you should replace Spui.jar with Spui-cli.jar in the commands for the command line interface.


The files Spui.jar and Spui-cli.jar include the class files of the gnu.getopt package. The complete gnu.getopt package including source files and documentation can be obtained from the web site of the author, Aaron M. Renn: java-getopt-1.0.9.tar.gz or java-getopt-1.0.9.jar.