XPathCompiler xpathCompiler = processor.newXPathCompiler();
for (Namespace n: namespaces) {
xpathCompiler.declareNamespace(n.getPrefix(), n.getURI());
}
return xpathCompiler.compile(xpath);
}
private static XdmNode buildXdm(String xml) throws SaxonApiException {
Activator.logInfo("Building Xdm");
DocumentBuilder builder = processor.newDocumentBuilder();