parsing xml with zip, xml and clojure.data.zip

2013-06-05 Thread Ryan Moore
Hi, I've read http://nakkaya.com/2009/12/07/zipping-xml-with-clojure/ and http://stackoverflow.com/questions/1194044/clojure-xml-parsing/9595315#comment24442712_9595315 , but the usage of (xml-) is still mysterious to me. If I have this for my xml file... (def myxml (zip-str level1

Re: parsing xml with zip, xml and clojure.data.zip

2013-06-05 Thread gaz jones
This may help: http://clojure-doc.org/articles/tutorials/parsing_xml_with_zippers.html On Wed, Jun 5, 2013 at 9:54 AM, Ryan Moore niclas1...@gmail.com wrote: Hi, I've read http://nakkaya.com/2009/12/07/zipping-xml-with-clojure/ and

Re: parsing xml with zip, xml and clojure.data.zip

2013-06-05 Thread Stefan Kamphausen
AFAIK your var myxml already refers to the root node of your XML document. So your first example searches for a tag called level1 inside the root tag (which is level1). Obviously, there is no such node and the text is empty. Your second example extracts a textual representation of the child

Re: parsing xml with zip, xml and clojure.data.zip

2013-06-05 Thread Ryan Moore
Ahh, so if the var refers to the root that would explain why specifying the root never returns anything. Thanks. On Wednesday, June 5, 2013 11:54:49 AM UTC-4, Stefan Kamphausen wrote: AFAIK your var myxml already refers to the root node of your XML document. So your first example