Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3849d94ef6
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.646 kb

Generate xml using sexps with the function `xmlgen':

(xmlgen '(p :class "big"))      => "<p class=\"big\" />")
(xmlgen '(p :class "big" "hi")) => "<p class=\"big\">hi</p>")

(xmlgen '(html
           (title "hello")
           (meta :something "hi"))
           (h1 "woohhooo")
           (p "text")
           (p "more text"))))

produces this (though wrapped):

    <meta something="hi" />
    <p>more text</p>
Jump to Line
Something went wrong with that request. Please try again.