Created
January 11, 2012 15:19
-
-
Save solussd/1595144 to your computer and use it in GitHub Desktop.
why doesn't this print the result of {:tag audit-rootkey :attrs {} :content (map to-xml-struct directory-records)} to stdout?
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
(defn generate-file-audit-xml | |
"Takes a seq of DirectoryRecords that contains the file audit and outputs an XML string with a | |
top level element with the value of file-audit/audit-rootkey" | |
[directory-records] | |
{:pre [(sequential? directory-records)]} | |
(let [out *out*] | |
(-> (binding [*out* out] {:tag audit-rootkey :attrs {} :content (map to-xml-struct directory-records)}) | |
xml/emit | |
with-out-str))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment