Use xmldom for parsing and serializing XML documents.

Avoids https://github.com/tmpvar/jsdom/issues/620
Svg: Subclass Xml instead of Text.