While org.xmlunit.xpath.JAXPXPathEngine allows users to specify an instance of XPathFactory explicitly, this is not exposed to the Hamcrest matchers or the AssertJ assertions.
Looking around Saxon because of #130 I realized Saxon has opted out of using the service loader mechanism and asks users to create the factory explicitly[1]. This means using Saxon is not easily possible with matchers/assertions.
[1] http://www.saxonica.com/documentation/index.html#!xpath-api/jaxp-xpath/factory
While
org.xmlunit.xpath.JAXPXPathEngineallows users to specify an instance ofXPathFactoryexplicitly, this is not exposed to the Hamcrest matchers or the AssertJ assertions.Looking around Saxon because of #130 I realized Saxon has opted out of using the service loader mechanism and asks users to create the factory explicitly[1]. This means using Saxon is not easily possible with matchers/assertions.
[1] http://www.saxonica.com/documentation/index.html#!xpath-api/jaxp-xpath/factory