https://bz.apache.org/bugzilla/show_bug.cgi?id=66171
--- Comment #8 from PJ Fanning <fannin...@yahoo.com> --- https://docs.oracle.com/javase/9/docs/api/javax/xml/xpath/XPath.html#evaluateExpression-java.lang.String-org.xml.sax.InputSource- was only added in Java 9 but would do exactly what you need - see https://docs.oracle.com/javase/9/docs/api/javax/xml/xpath/XPathEvaluationResult.html The Saxon S9API may be able to do this too but I'm not as familiar with this API - I just know that it is a separate API that is not based on javax API (but Saxon supports javax API too). -- You are receiving this mail because: You are the assignee for the bug.