manoelcampos / xml2lua

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
MIT License
290 stars 74 forks source link

xmlhandler/tree.lua: added 'new' function to tree module #12

Closed RussDragon closed 6 years ago

RussDragon commented 6 years ago

I've added 'new' function to tree module to provide ability creating different handlers for different files. In current version there is no ability (as I can see) to read multiple XML files without unloading tree from package_loaded. And also fixed a little bit of code style (removed spaces after lines, etc)

manoelcampos commented 6 years ago

Thanks for contributing. It just required some more changes to work properly and ensuring backward compatibility. The example1.lua is working as before and the new example2.lua was introduced.