(Element) xpath.evaluate(expression, doc1, XPathConstants.NODE);
Transform transform =
new Transform(doc1, Transforms.TRANSFORM_XSLT, transformEl.getChildNodes());
transform.performTransform(new XMLSignatureInput(doc2));
}
private static Document getDocument(File file)
throws ParserConfigurationException, SAXException, IOException {
return XMLUtils.createDocumentBuilder(false).parse(new FileInputStream(file));