Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are various data persistence libraries for Lua as well, many are described at the <a href="http://lua-users.org/wiki/" rel="nofollow noreferrer">Lua user's wiki</a>. The <a href="http://lua-users.org/wiki/LuaXml" rel="nofollow noreferrer">page on XML</a> has information that could help.</p> <p><strike>The nice folks over at the <a href="https://www.keplerproject.org/" rel="nofollow noreferrer">Kepler project</a> have generators for HTML which can be used for generating valid XML.</strike> (Dead link.)</p> <p>There is also <a href="http://cosmo.luaforge.net/" rel="nofollow noreferrer">cosmo</a> which is a generalized template framework that can be used to generate XML (among other things).</p> <p><strong>Edit:</strong></p> <p>I understand the concern for templates not necessarily providing guarantees that the output remains well formed. I'm pretty sure that the authors of Cosmo would be unhappy if a well-formed template ever produced a mal-formed document, but there is still the issue of properly quoting the content. In the contexts where I've used it, this hasn't been an issue for me, but I also haven't been working from untrusted source text.</p> <p>There are also projects posted at LuaForge that may be useful:</p> <ul> <li><p><a href="http://luaforge.net/projects/etree/" rel="nofollow noreferrer">Lua Element Tree</a> maps an XML document to and from a tree of tables. It uses Expat for reading, and claims to generate valid XML when writing.</p></li> <li><p><a href="http://luaforge.net/projects/luasoap/" rel="nofollow noreferrer">LuaSOAP</a> Includes XML generation and parsing sufficient for SOAP transactions. If you decide to write your own generator, this might be a good starting point for a limited dialect such as RSS or ATOM.</p></li> </ul> <p>Also, I know I've seen a project that implemented a complete DOM for HTML documents and supported both parsing and document generation, but I can't remember its name or locate it today at LuaForge.</p> <p><strong>Edit 2:</strong> Here's another package that I hadn't noticed before, even though it is included in <a href="http://luaforwindows.luaforge.net/" rel="nofollow noreferrer">Lua for Windows</a>: <a href="http://www.viremo.de/LuaXML/" rel="nofollow noreferrer">LuaXML</a>. It maps between XML and nest of Lua tables, and can both read and write XML.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload