Use latest xmldom, and remove unnecessary packages.

The older version of xmldom posed problems with parsing invalid xml (e.g. `<x`). Also, remove unnecessary npm packages.