-
-
Save mattdeboard/8ade2081f472e164064a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [tags (element :add {} | |
(for [job test-job] | |
(element :doc {} | |
(element :field {:name "buid"} (str (:buid_id job))) | |
(element :field {:name "city"} (:city job)) | |
;; ...<snip a bunch of the same>... | |
(element :field {:name "uid"} (str (:uid job))))) | |
)] | |
(with-open [out-file (java.io.FileWriter. "/tmp/foo.xml")] | |
(emit tags out-file))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment