This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.xml :as xml] | |
'[clojure.zip :as zip] | |
'[clojure.contrib.zip-filter.xml :as zfx]) | |
(def reddit-rss-xml (xml/parse "http://www.reddit.com/.rss")) | |
(def zipped-xml (zip/xml-zip reddit-rss-xml)) | |
;; xml1-> treats keywords as "search for this tag." xml/node at the | |
;; end says "return me that one part of the XML map" (format specified |
NewerOlder