1.2.0 permalink Arrow_down_16x16
  • (tag= tagname)
Returns a query predicate that matches a node when its is a tag
named tagname.

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:28 top

(defn tag=
  "Returns a query predicate that matches a node when its is a tag
  named tagname."
  [tagname]
    (fn [loc]
      (filter #(and (zip/branch? %) (= tagname ((zip/node %) :tag)))
              (if (zf/auto? loc)
                (zf/children-auto loc)
                (list (zf/auto true loc))))))
Vars in clojure.contrib.zip-filter.xml/tag=: = and defn filter fn list
Used in 0 other vars

Comments top

No comments for tag=. Log in to add a comment.