Liking cljdoc? Tell your friends :D

clojure.data.zip.xml


attrclj/s

(attr attrname)
(attr loc attrname)

Returns the xml attribute named attrname, of the xml node at location loc.

Returns the xml attribute named attrname, of the xml node at location loc.
source (clj)source (cljs)raw docstring

attr=clj/s

(attr= attrname attrval)

Returns a query predicate that matches a node when it has an attribute named attrname whose value is attrval.

Returns a query predicate that matches a node when it has an
attribute named attrname whose value is attrval.
source (clj)source (cljs)raw docstring

seq-testclj/s≠

(seq-test preds)
clj

Returns a query predicate that matches a node when its xml content

matches the query expresions given.

Returns a query predicate that matches a node when its xml content

matches the query expresions given.
cljs

Returns a query predicate that matches a node when its xml content matches the query expresions given.

Returns a query predicate that matches a node when its xml content
matches the query expresions given.
source (clj)source (cljs)raw docstring

tag=clj/s

(tag= tagname)

Returns a query predicate that matches a node when its is a tag named tagname.

Returns a query predicate that matches a node when its is a tag
named tagname.
source (clj)source (cljs)raw docstring

textclj/s

(text loc)

Returns the textual contents of the given location, similar to xpaths's value-of

Returns the textual contents of the given location, similar to
xpaths's value-of
source (clj)source (cljs)raw docstring

text=clj/s

(text= s)

Returns a query predicate that matches a node when its textual content equals s.

Returns a query predicate that matches a node when its textual
content equals s.
source (clj)source (cljs)raw docstring

xml->clj/s≠

(xml-> loc & preds)
clj

The loc is passed to the first predicate. If the predicate returns a collection, each value of the collection is passed to the next predicate. If it returns a location, the location is passed to the next predicate. If it returns true, the input location is passed to the next predicate. If it returns false or nil, the next predicate is not called.

This process is repeated, passing the processed results of each predicate to the next predicate. xml-> returns the final sequence. The entire chain is evaluated lazily.

There are also special predicates: keywords are converted to tag=, strings to text=, and vectors to sub-queries that return true if they match.

See xml_test.clj for examples.

The loc is passed to the first predicate.  If the predicate returns
a collection, each value of the collection is passed to the next
predicate.  If it returns a location, the location is passed to the
next predicate.  If it returns true, the input location is passed to
the next predicate.  If it returns false or nil, the next predicate
is not called.

This process is repeated, passing the processed results of each
predicate to the next predicate.  xml-> returns the final sequence.
The entire chain is evaluated lazily.

There are also special predicates: keywords are converted to tag=,
strings to text=, and vectors to sub-queries that return true if
they match.

See xml_test.clj for examples.
cljs

The loc is passed to the first predicate. If the predicate returns a collection, each value of the collection is passed to the next predicate. If it returns a location, the location is passed to the next predicate. If it returns true, the input location is passed to the next predicate. If it returns false or nil, the next predicate is not called.

This process is repeated, passing the processed results of each predicate to the next predicate. xml-> returns the final sequence. The entire chain is evaluated lazily.

There are also special predicates: keywords are converted to tag=, strings to text=, and vectors to sub-queries that return true if they match.

See the footer of zip-query.clj for examples.

The loc is passed to the first predicate.  If the predicate returns
a collection, each value of the collection is passed to the next
predicate.  If it returns a location, the location is passed to the
next predicate.  If it returns true, the input location is passed to
the next predicate.  If it returns false or nil, the next predicate
is not called.

This process is repeated, passing the processed results of each
predicate to the next predicate.  xml-> returns the final sequence.
The entire chain is evaluated lazily.

There are also special predicates: keywords are converted to tag=,
strings to text=, and vectors to sub-queries that return true if
they match.

See the footer of zip-query.clj for examples.
source (clj)source (cljs)raw docstring

xml1->clj/s

(xml1-> loc & preds)

Returns the first item from loc based on the query predicates given. See xml->

Returns the first item from loc based on the query predicates
given.  See xml->
source (clj)source (cljs)raw docstring

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

× close