[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error with Lua XML
- From: Philipp Janda <siffiejoe@...>
- Date: Mon, 06 May 2013 19:31:44 +0200
Hi!
Am 06.05.2013 18:36 schröbte jose francisco luis medina:
it returns me the following error:
lua: testxml.lua: 121: attempt to call Global 'XMLParser' (a nil value)
It says 'xmlParser'. Lua is case-sensitive, so this is important.
Am 06.05.2013 18:53 schröbte Ignacio Burgueño:
In xml.lua there is this line (line 162):
xmlParser1 = function(handler)
Shouldn't that be xmlParser?
Yes, changing that fixes the immediate problem, but it appears that this
code isn't fully ported to Lua 5.1 yet. I suggest using another XML
library. I typically start looking for Lua libraries here[1], but you
may also find something here[2].
[1]: http://luarocks.org/repositories/rocks/
[2]: http://lua-users.org/wiki/LuaXml
Philipp