|
|
||
|
Hallo,
Hello,
I am parsing XML data using LuaExpat.
I am wanting to traverse the lxp.lom.parse() tables and recreate the objects using the string from the tag as the name of the new table.
So basically how do I do something like:
'TableName' = {}
and be valid Lua?
Function environments are tables. The global environment is in table _G, so you can write: _G['TableName'] = {}.
-- -alex http://www.ventonegro.org/