DOMWriter and XMLParser for node.js