Skip to content

clearing results to be able to parse multiple xml files? #96

Answered by nilzao
ownlyme asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by manoelcampos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #93 on May 01, 2024 18:00.