Liking cljdoc? Tell your friends :D

dk.cst.xml-hiccup

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
raw docstring

attribute-keyclj/s

(attribute-key attribute)

Retrieve the key from the attribute object.

Retrieve the key from the `attribute` object.
raw docstring

attribute-objectsclj/s

(attribute-objects node)

Retrieve the raw attribute objects from the node.

Retrieve the raw attribute objects from the `node`.
raw docstring

attribute-valclj/s

(attribute-val attribute)

Retrieve the value from the attribute object.

Retrieve the value from the `attribute` object.
raw docstring

Commentcljs


Documentcljs


dom-parseclj/s

(dom-parse xml)

Parse xml into a DOM tree.

Parse `xml` into a DOM tree.
raw docstring

Elementcljs


keywordizeclj/s

(keywordize s)

Keywordize s converting XML namespaces to Clojure namespaces.

Keywordize `s` converting XML namespaces to Clojure namespaces.
raw docstring

Nodecljs


node->hiccupclj/s

(node->hiccup node)

Recursively convert a node and its children to Hiccup.

Recursively convert a `node` and its children to Hiccup.
raw docstring

node-attrsclj/s

(node-attrs node)

Get a Hiccup attributes map from a node.

Get a Hiccup attributes map from a `node`.
raw docstring

node-childrenclj/s

(node-children node)

Get the children of the node as objects.

Get the children of the `node` as objects.
raw docstring

node-dataclj/s

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

node-tagclj/s

(node-tag node)

Get a Hiccup tag from a node.

Get a Hiccup tag from a `node`.
raw docstring

parseclj/s

(parse xml)

Convert xml into a tree of Hiccup data.

Convert `xml` into a tree of Hiccup data.
raw docstring

parserclj/s


Textcljs


whole-textclj/s

(whole-text node)

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

× close