Skip to content

Instantly share code, notes, and snippets.

@simonharrer
Created November 5, 2012 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonharrer/4016489 to your computer and use it in GitHub Desktop.
Save simonharrer/4016489 to your computer and use it in GitHub Desktop.
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