Hi all,
I´m new in Lua. I´m testing the xml files, but find this error when I run the code
Program:
xml =require(“xml”).newParser()
local inbox = xml.loadFile(“sample.xml”,system.ResourceDirectory)
Error:
Program ‘lua’ started in ‘/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/myprograms’ (pid: 2804).
/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua: /Users/XX/Desktop/Programas/XML/main.lua:3: attempt to index global ‘system’ (a nil value)
stack traceback :
/Users/XX/Desktop/Programas/XML/main.lua:3: in main chunk
[C]: at 0x00001c80
Regards