|
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 |
Answered by
nilzao
May 1, 2024
Replies: 2 comments
|
i have the same issue. how do i clear it before i can pass another xml string? |
0 replies
|
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) |
0 replies
Answer selected by
manoelcampos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the trick is
edit example3.lua, add these lines at end to see the example: