|
|
||
|
Hi Noel,
Since you didn't mention what the solution was...
so far so good now I want to decode that table ({"one","two","three"})
and I use string & TableToXml(lua_State *L) { static string ret; ret.clear(); lua_pushnil(L); /* first key */ while (lua_next(L, -1) != 0)
{
ret += "<ITEM>";
ret += luaL_checkstring(L, -1);
ret += "</ITEM>";
lua_pop(L, 1); /* removes `value'; keeps `key' for next iteration */
Jack