public static void assertXsdSchemaValidation(XsdSchema schema, Source source)\r
throws IOException {\r
XmlValidator validator = schema.createValidator();\r
public static void assertXsdSchemaValidation(XsdSchema schema, Source source)\r
throws IOException {\r
XmlValidator validator = schema.createValidator();\r
SAXParseException[] exceptions = validator.validate(source);\r
if (exceptions.length != 0) {\r
for (SAXParseException ex : exceptions) {\r
log.error(ex.getMessage());\r
}\r
SAXParseException[] exceptions = validator.validate(source);\r
if (exceptions.length != 0) {\r
for (SAXParseException ex : exceptions) {\r
log.error(ex.getMessage());\r
}\r