only require xmldom in a node environment

Browserify adds a `process.browser` so we can ensure we're not in a browser environment.