WIP: try and generate xml through clojure.
Currently gets stuck in a stack over flow error on 35 (failure-content).