clojure.data.xml
A
Put all occurring xmlns into the root
function([xml])
Define a Clojure namespace aliases for xmlns uris. This sets up the current namespace for reading qnames denoted with...
function([& {:as alias-nss}])
- function
([n])
C
Create a CData node
function([content])
E
Create an xml Element from content varargs
function([tag] [tag attrs] [tag attrs & content])
Create an xml element from a content collection and optional metadata
function([tag attrs content meta] [tag attrs content])
Get xmlns environment from element
function([{:keys [attrs], :as element}])
- function
([el])
Prints the given Element tree as XML text to stream. Options: :encoding <str> Character encoding to use ...
function([e writer & {:as opts}])
Emits the Element to String and returns it. Options: :encoding <str> Character encoding to use :doct...
function([e & opts])
Parses an XML input source into a lazy sequence of pull events. Input source can be a java.io.InputStream or java.io.Re...
function([source {:keys [include-node? location-info coalescing supporting-external-entities allocator namespace-aware replacing-entity-references validating reporter resolver support-dtd], :or {include-node? #{:characters :element}, location-info true, coalescing true, supporting-external-entities false}}])
F
Find all xmlns occuring in a root
function([xml])
I
Emits the XML and indents the result. WARNING: this is slow it will emit the XML and read it in again to indent it. ...
function([e writer & opts])
Emits the XML and indents the result. Writes the results to a String and returns it
function([e & opts])
P
Parses an XML input source into a a tree of Element records. The element tree is realized lazily, so huge XML files can ...
function([source & {:keys [include-node? location-info coalescing supporting-external-entities allocator namespace-aware replacing-entity-references validating reporter resolver support-dtd], :or {include-node? #{:characters :element}, location-info true, coalescing true, supporting-external-entities false}}])
- function
Parses an XML String into a a tree of Element records. Options: :include-node? subset of #{:element :characters :com...
function([string & {:keys [include-node? location-info coalescing supporting-external-entities allocator namespace-aware replacing-entity-references validating reporter resolver support-dtd], :or {include-node? #{:characters :element}, location-info true, coalescing true, supporting-external-entities false}}])
Shell command to create a dummy file for xmlns. Execute from a source root.
function([uri])
Q
- function
([local] [uri local] [uri local _prefix])
Get the name for this qname
function([v])
Get the namespace uri for this qname
function([v])
S
Convert a single sexp into an Element
function([sexp])
Convert a compact prxml/hiccup-style data structure into the more formal tag/attrs/content format. A seq of elements ...
function([] [sexp] [sexp & sexps])
- function
([ss])
U
Dummy file name for :require'ing xmlns uri
function([uri])
- function
([uri])
X
Create a Comment node
function([content])