Oddly enough, clojure.xml/emit still exists when you (use 'clojure.xml) , this is the namespace in REPL in 1.2.0.
To check:
user=> (use 'clojure.xml) user=> (emit (parse "http://feeds.feedburner.com/burningonesblog"))
For full disclosure, I discovered this with a useful function (ns-map 'user)
user=> (doc ns-map) ------------------------- clojure.core/ns-map ([ns]) Returns a map of all the mappings for the namespace. nil
Now notice that you are completely right that they disappeared from the documentation in 1.2 ( clojure.xml and clojure.contrib.lazy-xml ) for everyone except prxml , which isn’t really what you are looking for. I can’t talk about why this is so, but the reason why they no longer appear in the web interface becomes apparent when studying their documentation.
user=> (doc emit) ------------------------- clojure.xml/emit ([x]) nil nil
Now there is this thread in the Google Group that indicates that using the emit function emit not recommended for two reasons.
- This is undocumented and therefore subject to change without notice.
- It generally does not create valid xml (although I assume that if you know that your data is valid, it will produce valid xml).
At the end of this thread, Stuart Halloway talks about a project to expand support for Clojure XML.
Of course, he always plunges into the Java pool and uses any of the excellent XML tools at the end of Java. It seems that the Clojure XML story is mainly used for parsing at this point.
Hope this helps.
source share