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)
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.
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)