docs: function isXPathValid(xpath, node) {
          var contextNode = mirror.getReflection();
          return (engine.setDocument(mirror.getReflection())
              .selectSingleNode(xpath, contextNode, namespaceResolver) === node);
      }