gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xml-gen.el --- A DSL for generating XML.


From: Phil Jackson
Subject: xml-gen.el --- A DSL for generating XML.
Date: Fri, 15 Aug 2008 10:29:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi,

There may already be something like this but I couldn't find it (I wrote
the majority of it on the train this morning, so it may need some
polish):

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

Produces this (though wrapped):

 <html>
   <head>
     <title>hello</title>
     <meta something="hi" />
   </head>
   <body>
     <h1>woohhooo</h1>
     <p>text</p>
     <p>more text</p>
   </body>
 </html>

Attachment: xml-gen.el
Description: application/emacs-lisp

-- 
 Phil Jackson
 http://www.shellarchive.co.uk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]