Thanks Abishek, this did help!
It pretty much worked as-is for me, I only needed one small change.
It was that the get-mods-for-iva function below returns a seq whose
first element is the matches and next element(s) were my entire xml
content - easily rectified with (first (xz/xml1- x-zip...
On
Hi-
I'm brand new to Clojure and FP, reading a bunch and working on my
first programming task (reading in values from an xml file and a text
file and then creating a new text file with some lines/sections of the
original text file replaced based on the content of the xml).
I found some helpful
Hi Peter,
The library clojure.contrib.zip-filter is pretty good at this sort of thing.
For example:
(require '[clojure.xml :as xml])
(require '[clojure.contrib.zip-filter.xml :as zx])
(require '[clojure.zip :as zip])
(defn get-mods-for-iva
Returns the mods node if one exists under a version