Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.
expression = "/my/xpath"; Node stateNode = (Node) xPath.compile(expression).evaluate(xmlResultDocument, XPathConstants.NODE); Transformer transformer = TransformerFactory.newInstance().newTransformer(); Result output = new StreamResult(new File("C:\\jazz.abc")); Source input = new DOMSource(stateNode); transformer.transform(input, output);
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
24 Experts available now in Live!