Here is a JUnit test case to test the OM's conformance against W3C test suite (available at the url http://dev.w3.org/cvsweb/2001/XML-Test-Suite/). Make sure to have in the directory of test case a folder named "XMLSuite" which contains in it all the unzipped files of the W3C XML test suite.