1.2.0 permalink Arrow_down_16x16
  • (attr attrname)
  • (attr loc attrname)
Returns the xml attribute named attrname, of the xml node at location loc.

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

(defn attr
  "Returns the xml attribute named attrname, of the xml node at location loc."
  ([attrname]     (fn [loc] (attr loc attrname)))
  ([loc attrname] (when (zip/branch? loc) (-> loc zip/node :attrs attrname))))
Vars in clojure.contrib.zip-filter.xml/attr: -> defn fn when
Used in 0 other vars

Comments top

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