I've found clojure-contrib/prxml to be very useful
http://richhickey.github.com/clojure-contrib/prxml-api.html



On Sep 21, 8:32 am, MarkSwanson <mark.swanson...@gmail.com> wrote:
> I would like to encode/decode Clojure structures to/from a database.
> Parsing XML is easy, but I can't seem to find a simple way to encode
> Clojure structures to XML and back. Atm my structures are simple: just
> simple key/value pairs where the key is always a string and the value
> is always a string or a set of strings.
>
> clojure.xml/emit and clojure.contrib.laxy_xml/emit both require
> specially constructed structures which isn't useful to me. I was
> hoping for a core or contrib function that was more generic that
> dynamically and recursively determined the structure keys for element
> names and strings for the element text data.
>
> In my mind I was thinking something simple like what Sarissa provides
> for JavaScript.
> If nothing exists I'll take a stab at it. I just thought I'd ask
> because the available Clojure libraries seem quite good and I feel
> like I'm missing something obvious.
>
> Cheers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to