xml2lua icon indicating copy to clipboard operation
xml2lua copied to clipboard

Would you provide a more convenient API for parsing XML to a table?

Open atship opened this issue 1 year ago • 0 comments
trafficstars

Now we need to require('xmlhandler.tree') and call xml2lua.parser(handler):parse(xml), now we need to use handler.root to get the table I found the helper function at https://github.com/manoelcampos/xml2lua/issues/92#issuecomment-1843106426, now we can parse xml to a table like this local tb = xml2lua.parse(xml). would you provide something like this helper function to your API list? It's convenient for users in my opinion. Thank you in advance.

atship avatar May 11 '24 09:05 atship