Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns ennui.core
- (:require [clojure.data.xml :as xml]
- [clojure.zip :as zip]
- [clojure.data.zip.xml :as zipx]))
- (defn xml-content
- "Returns the contents of the xml node at location loc."
- [loc] ((zip/node loc) :content))
- (defn dump-resources
- "Dump resources from an Evernote file"
- [fname]
- (let [x (xml/parse (java.io.FileReader. (java.io.File. fname)))
- xz (zip/xml-zip x)]
- (zipx/xml-> xz :en-export :note xml-content)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement