There are various data storage libraries for Lua, many of which are described in the Lua custom wiki . the page in XML contains information that might help.
Good people in the Kepler project have HTML generators that can be used to generate valid XML. (Dead link.)
There is also cosmo , which is a generic template structure that can be used to generate XML (among other things).
Edit:
I understand that caring for templates does not necessarily guarantee that the result remains well-formed. I am quite sure that Cosmo authors would be unhappy if a well-formed template ever created an incorrectly formatted document, but there is still the problem of correctly citing content. In the context where I used it, this was not a problem for me, but I also did not work with unreliable source code.
LuaForge also has projects that may be useful:
The Lua element tree maps an XML document to and from a table tree. It uses Expat for reading and claims to generate the correct XML when writing.
LuaSOAP Includes XML generation and parsing sufficient for SOAP transactions. If you decide to write your own generator, this may be a good starting point for a limited dialect such as RSS or ATOM.
In addition, I know that I saw a project that implemented a complete DOM for HTML documents and supported both parsing and document creation, but I cannot remember its name or find it today in LuaForge.
Edit 2: Here is another package that I have not noticed before, even if it is included in Lua for Windows : LuaXML . It maps between XML and the Lua table socket and can read and write XML.
source share