A.5. Check the XML parser with the XML Test Suites

The XML parser of the Haskell XML Toolbox was elaborately tested with the XML Test Suites from the W3C [WWW02]. If you want to run these checks on your own, you can use the tool RunTestCases that is distributed with the Haskell XML Toolbox.

First you have to download the test cases from the W3C [WWW02] and extract them in an own directory. To test the XML parser with these test cases, you have to build the program RunTestCases. Executing make RunTestCases in the root directory of the Haskell XML Toolbox will compile this program.

The XML Test Suites contain test cases from different organizations and people. RunTestCases must be called with a test case description file as argument from the directories: ibm, oasis, sun or xmltest.

Perhaps a dummy root node must be added to these files to form a valid XML document. RunTestCases cannot process the root file that combines all theses description files.

When being executed, RunTestCases will ask what type of test shall be performed. The type entered must correspond to the tests listed in the test case description file. RunTestCases will only execute these test cases.

If the option "show detailed information" is set, RunTestCases will display the XmlTree in addition if a test fails.

Example A-1. Executing RunTestCases


RunTestCases ibm_oasis_valid.xml

Which kind of test shall be performed?
([1] - valid | 2 - invalid | 3 - not-wf | 4 - error):

Show detailed information? (j/[n])