Validator validator = schema.newValidator();
SAXSource source = new SAXSource(is);
validator.validate(source);
helper.fromXML(xml);
} catch (SAXParseException e) {
e.printStackTrace();
Assert.fail("Line: "+ e.getLineNumber()+" Failed validation: " + e.getMessage() + "\n" + xml);
} catch (SAXException e) {
e.printStackTrace();