Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Make xml-> return empty strings instead of skipping non-matching nodes
(ns test
(:require [ :as zip]
[ :as xml]
[ :as zx]))
(def xml-example
<desc>A description</desc>
<desc>Another description</desc>
(zx/xml-> (zip/xml-zip (xml/parse-str xml-example))
:top :id :desc :other zx/text)
;; Returns ("Something") while I would like ("Something" "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment