Cluain / Lua-Simple-XML-Parser

Read simple XML easily
153 stars 91 forks source link

xmlSimple.lua:105: attempt to index global 'system' (a nil value) #14

Open wcss2010 opened 6 years ago

wcss2010 commented 6 years ago

$ lua52 test2.lua c:\Program Files\LuaShell\lua52.exe: .\xmlSimple.lua:105: attempt to index global 'system' (a nil value) stack traceback: .\xmlSimple.lua:105: in function 'loadFile' test2.lua:3: in main chunk [C]: in ?

Code: local xml = require("xmlSimple").newParser() local xmlData= xml:loadFile("C:/luaStudy/t.xml") print(#xmlData.test)