lua-users home
lua-l archive

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


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