0
comment
comment
on 10/27/2011 12:07 AM
As mentioned earlier in this series, we have a process written in Clojure that reads updated member profiles from our MySQL database, converts them to XML and posts them to our search engine. XML generation in Clojure is made very easy by using a library called hiccup. For example, the following XML:
<items>
<item id="Clojure" type="language">
<emotion>Joyful!</emotion>
</item>
</items></pre>
<p>is represented to hiccup as the following data structure:</p>
<pre>[:items
[:item {:id "Clojure" :type[...]