(parse schema doc)(parse opts schema doc)Parse an xml file.
opts is a map that can contain
[:com.vincit.clj-xsd.core/parsers :com.vincit.clj-xsd.core/simple] -> a map from type keyword (see ::namespaces) to a parser function [context str-content] -> any-type-you-wish, where context is this same opts map and some other stuff and content is whatever is returned by clojure.data.xml
[:com.vincit.clj-xsd.core/parsers :com.vincit.clj-xsd.core/complex] -> a map from type keyword to a parser function [context el] -> new-result
:com.vincit.clj-xsd.core/namespaces -> a map from xml namespace (string) to a clojure namespace to be used for keys of that type. If a namespace is missing, non-namespaced keywords are returned
:com.vincit.clj-xsd.core/post -> postprocessing functions [parse-result] -> new-result
Parse an xml file.
opts is a map that can contain
[:com.vincit.clj-xsd.core/parsers :com.vincit.clj-xsd.core/simple]
  -> a map from type keyword (see ::namespaces) to a parser function
     [context str-content] -> any-type-you-wish, where context is this
     same opts map and some other stuff and content is whatever is returned
     by clojure.data.xml
[:com.vincit.clj-xsd.core/parsers :com.vincit.clj-xsd.core/complex]
  -> a map from type keyword to a parser function [context el] -> new-result
:com.vincit.clj-xsd.core/namespaces
  -> a map from xml namespace (string) to a clojure namespace to be used
     for keys of that type. If a namespace is missing, non-namespaced
     keywords are returned
:com.vincit.clj-xsd.core/post
  -> postprocessing functions [parse-result] -> new-result
(read-schema schema-document)Read a schema description file (.xsd) and produce a schema representation for clj-xsd. The representation can then be given to parse.
schema-document is a file stream opened with clojure.java.io/input-stream or something else that clojure.data.xml/parse accepts.
Read a schema description file (.xsd) and produce a schema representation for clj-xsd. The representation can then be given to parse. schema-document is a file stream opened with clojure.java.io/input-stream or something else that clojure.data.xml/parse accepts.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |