This is a simple Lua binding for Tim Bray's Genx library. Genx is a simple, fast, and safe generator for XML written in C. It is guaranteed to produce well-formed XML.
The latest version is 0.5.0, which includes Genx Beta 5. Version 0.5.0 is not yet a complete binding for Genx, but it provides a useful segment of its functionality. For a list of current issues, see the bug tracker.
You can install genx with LuaRocks:
$ luarocks install http://genx.luaforge.net/genx-0.5.0-1.rockspec
$ hg clone http://bitbucket.org/adrian/lgenx/
- 0.5.0, August 14, 2009
- First public release, based on Genx Beta 5
- Includes elements, attributes, text, and comments only
This module was developed by Adrian Sampson.
There aren't many alternatives for XML generation in Lua. Here's what I was able to find:
- Lua Element Tree uses a Lua table-based form for representing XML documents and can both generate and read XML.
If you know of other projects that should go here, please let me know.