• (text loc)
Returns the textual contents of the given location, similar to
xpaths's value-of

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/zip_filter/xml.clj:38 top

(defn text
  "Returns the textual contents of the given location, similar to
  xpaths's value-of"
  [loc]
    (.replaceAll
      ^String (apply str (xml-> loc zf/descendants zip/node string?))
      (str "[\\s" (char 160) "]+") " "))
Vars in clojure.contrib.zip-filter.xml/text: apply char defn str string?
Used in 0 other vars

Comments top

No comments for text. Log in to add a comment.