[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: XMLinLua
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 3 Jul 2012 20:25:51 +0200
I found LuaXML on the lua-users wiki. It goes from XML to Lua.
The other way would be nice too. XML is so verbose …
I could not find anything either on the wiki or by googling.
So I wrote the attached. Here's a sample: the expression
macro {name="author-short",
names{variable="author",'name form="short"'} }
represents the following string:
<macro name="author-short">
<names variable="author">
<name form="short"/>
</names>
</macro>
Comments welcome.
Attachment:
xml.lua
Description: Binary data