Repro:
(find {:tag :a :attrs {} :content ()} :tag)
;;=> [:tag :a]
(find (clojure.data.xml/element :a) :tag)
;;=> Execution error (AbstractMethodError) at clojure.data.xml.node.Element/entryAt (node.cljc:-1).
;; Method clojure/data/xml/node/Element.entryAt(Ljava/lang/Object;)Lclojure/lang/IMapEntry; is abstract
Having Element
implement entryAt
would make it possible e.g. to write Malli schemas for clojure.data.xml data structures without having to transform Element
s to maps beforehand.