We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c803aeb commit ef89c7aCopy full SHA for ef89c7a
2 files changed
src/main/clojure/clojure/data/xml.clj
@@ -31,7 +31,7 @@
31
[clojure.data.xml.tree :refer
32
[event-tree flatten-elements]]))
33
34
-(export-api node/element* node/element node/cdata node/xml-comment
+(export-api node/element* node/element node/cdata node/xml-comment node/element?
35
prxml/sexp-as-element prxml/sexps-as-fragment event/element-nss
36
name/alias-uri name/parse-qname name/qname-uri
37
name/qname-local name/qname name/as-qname name/uri-symbol name/symbol-uri
src/main/clojure/clojure/data/xml/node.cljc
@@ -217,3 +217,6 @@
217
;; TODO support hiccup syntax
218
:else (throw (ex-info "Unsupported element representation"
219
{:element el}))))
220
+
221
+(defn element? [el]
222
+ (and (map? el) (some? (:tag el))))
0 commit comments