Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

answer a question

View something.clj
1 2 3 4 5 6 7 8 9 10 11
(ns something.something
[:import [javax.xml.validation SchemaFactory Validator]
[javax.xml.transform.stream StreamSource]])
(defn something []
(let [factory (SchemaFactory/newInstance "http://www.w3.org/2001/XMLSchema")
file (clojure.java.io/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
Something went wrong with that request. Please try again.