Upgraded xml2js version to master edge. Bundled in node_modules. Tested it with three different XML files and working nicely. Reduced code to use 'cleanup' function. More fault tolerant.