Currently, the xml2js library referenced consumes lots of memory when parsing xml. For example the metadata document for a typical MS Dynamics metadata document with a size of 10-20 MB can result in memory usage spikes that end up in the 512 MB to 1 GB range. Updating the xml library may resolve this problem.