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
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
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
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