I\'m looking for a solution that allows me to write native Emacs Lisp code and at compile time turns it into HTML, like Franz\'s htmlgen:
(html
((:div class
I had a similar requirement to be able to parse xml using xml-parse functions, transform it, and then output it back as a xml string.
Trey's solution almost worked except I needed to retain the whitespace xml elements. So I wrote my own implementation here:
https://github.com/upgradingdave/xml-to-string