Liking cljdoc? Tell your friends :D
Clojure only.

com.vincit.clj-xsd.core


parseclj

(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
sourceraw docstring

read-schemaclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close