Created
January 11, 2012 15:19
Revisions
-
solussd created this gist
Jan 11, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ (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)))