Discriminator for content that accepts any start tag (:xml/hiccup).
Discriminator for content that accepts any start tag (:xml/hiccup).
(read-hiccup r)Read a full element as hiccup: [tag attrs? & children]. Call when the reader is on START_ELEMENT.
Read a full element as hiccup: [tag attrs? & children]. Call when the reader is on START_ELEMENT.
(read-hiccup-content r)Read only the mixed-content children of the current element (no outer tag/attrs). Call when the reader is on START_ELEMENT of a value-wrapped parent; leaves the reader on the matching END_ELEMENT. Attributes and the element name already live on the parent map.
Read only the mixed-content children of the current element (no outer tag/attrs). Call when the reader is on START_ELEMENT of a value-wrapped parent; leaves the reader on the matching END_ELEMENT. Attributes and the element name already live on the parent map.
(seqex-member-parser x)Parser for one member of a seqex (:alt / :or / :cat / :? / :* / :+ / :repeat).
Parser for one member of a seqex (:alt / :or / :cat / :? / :* / :+ / :repeat).
(take-while-plus-1 pred)Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of side-effects. Returns a transducer when no collection is provided.
Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of side-effects. Returns a transducer when no collection is provided.
(union-discriminators discriminators)Combine the discriminators of the members of a choice or sequence.
A member discriminator is a set of tags, nil (leaf text, no start tag), or a predicate accepting any tag. One any-tag member makes the whole union accept any tag, so the union cannot be represented as a set of tags.
Combine the discriminators of the members of a choice or sequence. A member discriminator is a set of tags, nil (leaf text, no start tag), or a predicate accepting any tag. One any-tag member makes the whole union accept any tag, so the union cannot be represented as a set of tags.
(wrap-exit-wildcard parser)read-hiccup stops on the END_ELEMENT of the element it consumed, which is what :tuple and single-tag parsers want - they exit that tag themselves. A wildcard member of a seqex has no such wrapper, so it has to step past its own end tag or the surrounding sequence cannot make progress.
read-hiccup stops on the END_ELEMENT of the element it consumed, which is what :tuple and single-tag parsers want - they exit that tag themselves. A wildcard member of a seqex has no such wrapper, so it has to step past its own end tag or the surrounding sequence cannot make progress.
(xml-parser ?schema)(xml-parser ?schema options)Returns an pure xml-parser function of type x -> boolean for a given Schema.
Caches the result for [[Cached]] Schemas with key :xml-parser.
Returns an pure xml-parser function of type `x -> boolean` for a given Schema. Caches the result for [[Cached]] Schemas with key `:xml-parser`.
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 |