Mutating XML in Clojure

Posted by mac on Stack Overflow See other posts from Stack Overflow or by mac
Published on 2010-03-15T22:14:05Z Indexed on 2010/03/15 22:19 UTC
Read the original article Hit count: 492

Filed under:
|

Clojures clojure.xml/parse, clojure.zip/xml-zip and clojure.contrib.zip-filter.xml/xml-> are excellent tools for pulling values out of xml, but what if I want to change the xml (the result of clojure.zip/xml-zip) based on what I learn from xml-> "queries" and write the result back out as xml?

I would have expected that (clojure.contrib.prxml/prxml (clojure.xml/parse xml-content)) spit back xml, but that is not the case.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about clojure