Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
answer a question
(ns something.something
[:import [javax.xml.validation SchemaFactory Validator]
[ StreamSource]])
(defn something []
(let [factory (SchemaFactory/newInstance "")
file ( "simple.xsd")
schema (.newSchema factory file)
validator (.newValidator schema )
stream-source (StreamSource. "simple-err.xml")]
(.validate validator stream-source)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment