XML Test Cases version 1998-02-10

Copyright (C) 1998 James Clark. All rights reserved. Permission is granted to copy and modify this collection in any way for internal use within a company or organization. Permission is granted to redistribute the file xmltest.zip containing this collection to third parties provided that no modifications of any kind are made to this file. Note that permission to distribute the collection in any other form is not granted.

This is a collection of test cases for XML 1.0.

The not-wf directory contains a collection of small files all of which fail to be well-formed XML documents according to the XML 1.0 Recommendation. Any conforming XML parser should produce a fatal error on all the files.

The xnot-wf directory contains a collection of small files all of which fail to be well-formed XML documents according to the XML specification. These differ from the examples in not-wf in that the error is no in the document entity and is not required to be detected by a non-validating XML parser. No conforming XML parser should report an error for any of these files. All conforming validating XML parsers should produce a fatal error on all these files. A non-validating XML parser that processes external entities should also produce a fatal error on all these files.

The valid directory contains a collection of small files which are all valid XML documents according the XML specification. Any conforming XML parser should parse these without error. The valid/out directory contains an equivalent canonical XML document for each of the files in valid; these are all well-formed XML documents with no DTD (and hence not valid), and any conforming XML parser should parse these without error if validation is disabled.

The xvalid directory contains a collection of small files which are all valid XML documents according the XML specification. These differ from the examples in not-wf in they reference external entities and so are not standalone. Any conforming XML parser should parse these without error, but may not be able to produce the correct output. The xvalid/out directory contains an equivalent canonical XML document for each of the files in valid.

The invalid directory contains a collection of small files which all fail to be valid XML documents according the XML specification. Any conforming validating XML parser should report any error for all of these, if validation is enabled.

Bug reports and contributions of new test cases are welcome.

James Clark