Class SecureXPathFactory

java.lang.Object
org.apache.commons.xml.secure.SecureXPathFactory

public final class SecureXPathFactory extends Object
Creates new, secure XPathFactory instances.

Beyond the three universal guarantees on org.apache.commons.xml.secure, URI-fetching XPath 3.1+ functions (doc(), collection(), unparsed-text()) are not resolved.

The guarantees also cover the document parse behind XPath.evaluate(String, InputSource) and XPathExpression.evaluate(InputSource): the input document is built through a secure, namespace-aware DocumentBuilder instead of the engine's internal parser.

Not a XPathFactory itself, so none of the JAXP static factory methods is inherited: a caller cannot reach a non-secured factory through this class by calling an inherited method such as newDefaultInstance(). The secure factories are instances of a nested, non-public wrapper class.

See Also: