Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Validating XSD files
String path = "my/test/path/to/file.xsd";
SchemaFactory sFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
sFactory.newSchema(new File(path));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment