Closed ownlyme closed 6 months ago
i have the same issue. how do i clear it before i can pass another xml string?
the trick is
handler = handler:new()
edit example3.lua, add these lines at end to see the example:
print("\nUsing New handler instance")
handler = handler:new()
parser = xml2lua.parser(handler)
parser:parse(xml)
xml2lua.printable(handler.root)
when i parse multiple xml files, the additional files seem to get added to the same table and there doesn't seem to be a way to clear the results