Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clojurescript: consuming xml?

My Clojurescript app needs to deal with an XML-based API. I know that there are mostly transparent remoting solutions like fetch, but they seem to require that both ends be written in Clojure (i.e. fetch seems to be a noir/clojurescript solution).

What is "the right way" to consume an XML API using Clojurescript?

I'd just settle for being able to translate a XML fragment into a nested Clojure data structure (nested vectors), Hiccup-style, but a good processing API would be appreciated (something like C2's unify maybe?)

like image 518
Rom1 Avatar asked Aug 20 '12 20:08

Rom1


3 Answers

Have you tried the Google Closure library for that?

edit Google Closure library has moved to github. https://github.com/google/closure-library

like image 142
Bill Avatar answered Nov 03 '22 19:11

Bill


I know it is an old question, but for folks that land here searching for it (like me). You can try to use the Tubax library.

like image 26
Pedro Henrique Avatar answered Nov 03 '22 19:11

Pedro Henrique


I would recommend porting over one of the clojure XML libraries to clojurescript to do this

like image 1
yazz.com Avatar answered Nov 03 '22 19:11

yazz.com