Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Validating XML Well-Formedness
String path = "my/test/path/to/file.xml";
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
db.parse(new File(path));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment