lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hallo,

On 1/8/07, Jimmie Houchin <jhouchin@cableone.net> wrote:
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/