}
public void testSchema() throws SAXException, IOException {
final SchemaValidator validator = new SchemaValidator();
validator.addSchemata(XDIMESchemata.ALL_XDIME2_SCHEMATA);
validator.validate(new BinaryContentInput(
getClass().getResourceAsStream("res/script-test.xml")));
try {
validator.validate(new BinaryContentInput(
getClass().getResourceAsStream("res/invalid-script-test.xml")));
fail("should fail with exception");