Created
November 1, 2010 18:13
-
-
Save hoeck/658635 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(clojure.xml/emit {:tag :FOO | |
:attrs {:attr 'xxx}, | |
:content [{:tag :BAR | |
:attrs {:name "bar", :num 123}} | |
{:tag :BAR | |
:attrs {:name "baz", :num 100}}]}) | |
<?xml version='1.0' encoding='UTF-8'?> | |
<FOO attr='xxx'> | |
<BAR name='bar' num='123'/> | |
<BAR name='baz' num='100'/> | |
</FOO> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment