Convert XML DOM to a string
var xmldom2xml = require("xmldom-to-xml");
var DOMParser = require("xmldom").DOMParser;
var domParser = new DOMParser();
var xmlDOM = domParser.parseFromString("some-xml-string");
var xml = xmldom2xml(xmlDOM.getElementsByTagName("some-xml-element"));