Hello, Here's what I've done in times past:
(ns process-xml-in-a-file (:require [clojure.zip :as zip]) (:require [clojure.contrib.zip-filter.xml :as zfx]) (:require [clojure.xml :as xml])) ; creating list of all checkable instances (def dev2-cfg-xml (-> "c:/dl/tibsup/Prod_Stg_auto_shutdown/dev2/dev2_config_start.xml" (xml/parse) (zip/xml-zip))) (def instances (fn [cfg-xml] (zfx/xml-> cfg- xml :Phases :Phase :ServiceInstances :Sequence :group :instances zfx/ text))) (instances dev2-cfg-xml) I can't provide dev2_config_start.xml as there's confidential info in the dev2_config_start.xml, and I'm pressed for time. I'm not sure if it's exactly what you had in mind, but I hope it helps nonetheless. Kev On May 28, 10:19 am, Raoul Duke <rao...@gmail.com> wrote: > wow. the fact that people use java+somehatefullibs+xml and apparently > think that is something "good", completely drives me insane. i mean, > it isn't just additional bloat, it is more like > ackermann-function-scale bloat. gargh! has anybody done something > like: > > 1) convert the bloody XML to Clojure lispy goodness > 2) ok well you are done, it is now code! :-} > > ? > > ack. barf. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---