how can i generate xml without namespace using orgclojure dataxml?

I think you can get what you want like this using uri aliases:

(require '[ :as xml])

;; declare a uri alias in this namespace
(xml/alias-uri 'atom "")

;; use the alias as tag prefix, but also declare at the root as default
    [::atom/feed {:xmlns ""}]))

;; emitted string:
;; "<?xml version=\"1.0\" encoding=\"UTF-8\"?><feed xmlns=\"\"/>"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top