On Thu, Oct 18, 2012 at 8:15 AM, Rena <hyperhacker@gmail.com> wrote: > I seem to be having trouble finding a pure Lua library that can parse > XML into a table and back again. The pl.xml module does this: https://github.com/stevedonovan/Penlight/blob/master/lua/pl/xml.lua (it's _almost_ self-sufficient, and currently only depends on pl.utils) lua docs are here http://stevedonovan.github.com/Penlight/api/modules/pl.xml.html and discussion is here: http://stevedonovan.github.com/Penlight/api/topics/06-data.md.html#XML Uses Roberto's pure-Lua parser when it can't find luaexpat. It uses a modified version of the stringifier from Mathew Wild's Prosody. Plus, it provides an implementation of the 'htmlify' pattern as used in Orbit for generating XML. steve d.