lua-users home
lua-l archive

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


On Wed, Jul 4, 2012 at 4:25 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 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.

It looks like a neat little module. I'll have to give it a try with
WoW's XML syntax a bit later.