Skip to content

@elarkin /something.clj
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
answer a question
(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.