Updated custom XML writer.
Switched to clojure.xml parser as clojure.data.xml strips out namespaces.

TODO: XML output indentation. XML content isn't writing properly either, but
attrs and tags are.