mdr2.data.xml

Enhance the default data.xml emit functions so that the doctype declaration can be specified

emit

(emit e stream & {:keys [encoding doctype], :or {encoding "UTF-8"}})

Prints the given Element tree as XML text to stream. Options: :encoding Character encoding to use :doctype Document type (DOCTYPE) declaration to use

emit-str

(emit-str e & {:keys [encoding doctype], :as opts})

Emits the Element to String and returns it. Options: :encoding Character encoding to use in the XML Declaration :doctype Document type (DOCTYPE) declaration to use