Re: xml-zip

2011-12-13 Thread Tom Faulhaber
contrib project (seehttps://github.com/clojure/data.zip > > for the source andhttp://clojure.github.com/data.zipfor the > > autodoc). > > > Using that, the xpathy thing you're looking for is something like > > this: > > > (ns play.xml-example > >  (:r

Re: xml-zip

2011-12-13 Thread Linus Ericsson
for is something like > this: > > (ns play.xml-example > (:require [clojure.zip :as zip] >[clojure.data.zip :as zf] > [clojure.xml :as xml]) > (:use clojure.data.zip.xml)) > > (def mz (zip/xml-zip (xml/parse "dataabove.xml"))) > >

Re: xml-zip

2011-12-12 Thread Tom Faulhaber
github.com/data.zip for the autodoc). Using that, the xpathy thing you're looking for is something like this: (ns play.xml-example (:require [clojure.zip :as zip] [clojure.data.zip :as zf] [clojure.xml :as xml]) (:use clojure.data.zip.xml)) (def mz (zip/xml

xml-zip

2011-12-12 Thread Linus Ericsson
Hello! What's the clever way to read the E-tags "thisone" and "andthis" in the XML-file below given I don't know their id on beforehand? bla bla bla bla My solution so far would be something like (def mz (zip/xml