Welcome! Please see the About page for a little more info on how this works.

+1 vote
in data.xml by
retagged by


(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 Elements to maps beforehand.

1 Answer

+1 vote
selected by
Best answer