[Top][All Lists]
[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>
xml-gen.el
Description: application/emacs-lisp
--
Phil Jackson
http://www.shellarchive.co.uk
- xml-gen.el --- A DSL for generating XML.,
Phil Jackson <=