clojurescript: consuming xml?
Asked Answered
E

3

11

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?)

Ellynellynn answered 20/8, 2012 at 20:50 Comment(2)
Nowadays data.xml should also work in ClojureScript.Bartie
@gits The OP (Alex Miller) is actually a contributor to that library ;-)Hein
J
5

Have you tried the Google Closure library for that?

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

Jointly answered 28/8, 2012 at 15:35 Comment(0)
S
2

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.

Schoolhouse answered 5/9, 2018 at 14:54 Comment(0)
F
1

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

Feculent answered 26/8, 2012 at 10:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.