Попробуйте следующее:
File schemaFile = new File("schema.xsd");
File xmlFile = new File("input.xml");
Schema schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(schemaFile);
Validator validator = schema.newValidator();
validator.validate(new StreamSource(new FileInputStream(xmlFile)));