doc = dom4jBuilder.read(file);
} catch (org.dom4j.DocumentException e) {
throw new SaxonApiException(e);
}
Processor proc = new Processor(false);
proc.getUnderlyingConfiguration().registerExternalObjectModel(new DOM4JObjectModel());
DocumentBuilder db = proc.newDocumentBuilder();
XdmNode xdmDoc = db.wrap(doc);
XPathCompiler xpath = proc.newXPathCompiler();
XPathExecutable xx = xpath.compile("//ITEM/TITLE");
XPathSelector selector = xx.load();