Clojure(Script) implementation of an XML parser that, more or less directly, converts an XML file into Hiccup data without trying to be clever about it.
Comments and superfluous whitespace are deliberately not preserved, while namespaces are converted into regular Clojure namespaces. No attempt is made to map namespace URIs to namespace aliases.
See: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
Clojure(Script) implementation of an XML parser that, more or less directly, converts an XML file into Hiccup data without trying to be clever about it. Comments and superfluous whitespace are deliberately not preserved, while namespaces are converted into regular Clojure namespaces. No attempt is made to map namespace URIs to namespace aliases. See: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
(attribute-key attribute)
Retrieve the key from the attribute
object.
Retrieve the key from the `attribute` object.
(attribute-objects node)
Retrieve the raw attribute objects from the node
.
Retrieve the raw attribute objects from the `node`.
(attribute-val attribute)
Retrieve the value from the attribute
object.
Retrieve the value from the `attribute` object.
(keywordize s)
Keywordize s
converting XML namespaces to Clojure namespaces.
Keywordize `s` converting XML namespaces to Clojure namespaces.
(node->hiccup node)
Recursively convert a node
and its children to Hiccup.
Recursively convert a `node` and its children to Hiccup.
(node-attrs node)
Get a Hiccup attributes map from a node
.
Get a Hiccup attributes map from a `node`.
(node-children node)
Get the children of the node
as objects.
Get the children of the `node` as objects.
(node-data node)
Return the data of a node
. Mimics the return value of clojure.data.xml.
Return the data of a `node`. Mimics the return value of clojure.data.xml.
(node-tag node)
Get a Hiccup tag from a node
.
Get a Hiccup tag from a `node`.
(parse xml)
Convert xml
into a tree of Hiccup data.
Convert `xml` into a tree of Hiccup data.
(whole-text node)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close