1.2.0 permalink Arrow_down_16x16
  • (attributes e)

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/lazy_xml.clj:113 top

(defn attributes [e]
  (let [v (vec (:attrs e))]
    (reify org.xml.sax.Attributes
      (getLength [_] (count v))
      (getURI [_ i] (namespace (key (v i))))
      (getLocalName [_ i] (name (key (v i))))
      (getQName [_ i] (name (key (v i))))
      (getValue [_ uri name] (get (:attrs e) name))
      (^String getValue [_ ^int i] (val (v i)))
      (^String getType [_ ^int i] "CDATA"))))
Vars in clojure.contrib.lazy-xml/attributes: count defn get key let name namespace reify val
Used in 0 other vars

Comments top

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