Skip to content

Instantly share code, notes, and snippets.

@mpolden
Last active August 29, 2015 14:02
Show Gist options
  • Save mpolden/8a3bfc85d6f98bd55551 to your computer and use it in GitHub Desktop.
Save mpolden/8a3bfc85d6f98bd55551 to your computer and use it in GitHub Desktop.
;; result from clojure.xml/parse
{:tag :foo,
:attrs nil,
:content
[{:tag :bar,
:attrs
{:text "some text"
:more-text "some more text"},
:content nil}]}
;; result from transformation
{:foo {:bar {:more-text "some more text"
:text "some text"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment