I think your XML (waypoint or profile or database/*.xml ) closed not right. Funny I wrote something about it a few minutes ago and went through that file.
EDIT: Strange the doc says:
parser:close()
Closes the parser, freeing all memory used by it. A call to parser:close() without a previous call to parser:parse() could result in an error.
but the lua code made sure that never happens:
Code: Select all
local result, msg, line, col, pos;
if( type(input) == "userdata" ) then
-- Prase an already opened file that was opened with io.open()
for l in input:lines() do
result, msg, line, col, pos = p:parse(l);
if( not result ) then
break;
end
p:parse("\n");
end
if( result ) then
p:close();
--return callbacks.stack[1][1];
else
How can "result" not be nil when the only way to be not nil is calling parse()
I would download a new copy of MM and Rombot.