Add NS methods to document, as well as ImportNode.