The XMLBench program is structured as a test driver with extensions for each supported model. The test driver calls virtual methods that need to be implemented for each document model to actually run the tests. Test implementations for the models discussed in the article are included in the downloads from this page.

You can browse the XMLBench JavaDocs online. You can also download jars with either just the code and JavaDocs (basically the contents of the build directory under the full project), or the full project including the jar files for all the document representations tested and the actual XML documents used in the tests (with the exception of the xml.xml document, which cannot be redistributed due to modifications used for the test - see the document descriptions for a full discussion of this issue). To unpack the jar files, use the jar tool included in a recent JDK with "jar xvf file-name.jar" (or use another utility program supporting the jar file format, such as WinZip on Windows systems).

The code jar includes an Ant build.xml file to build the project, including the actual jar files. The full project jar file also includes several .sh script files in the root directory which show the classpath settings and files lists used for these tests.

The actual benchmark program is the com.sosnoski.xmlbench.XMLBench class. If executed without command line parameters, it prints a summary of the parameters, which include a variety of possible output formats and test variations.

Note that Electric XML is distributed under a restricted license, and if you choose to download the full project jar file you must agree to the terms of that license as it applies to the EXML.jar file included in the distribution. This license applies only to that particular file, and you can void the license by deleting the file from your system after downloading and unpacking the distribution jar.

Update History

May 10, 2001 - Published version 1.0
October 4, 2001 - Added reference to developerWorks article
March 24, 2002 - Published version 1.2