Support the DOM tree generated by the node.js package xmldom