Class XmlUtils.XPathEvaluator

  • Enclosing class:
    XmlUtils

    public static final class XmlUtils.XPathEvaluator
    extends Object
    Wrapper around XPathExecutable that provides the original XPath expression from which the XPathExecutable was compiled, via toString() method. To be used for XPath-based Expression evaluations, e.g. AttributeSelector, xpathExpression, etc.
    • Constructor Detail

      • XPathEvaluator

        public XPathEvaluator​(String path,
                              net.sf.saxon.s9api.XPathCompiler xPathCompiler)
                       throws IllegalArgumentException
        Creates instance
        Parameters:
        path - XPath executable
        xPathCompiler - XPath compiler
        Throws:
        IllegalArgumentException - in case of invalid XPath
    • Method Detail

      • load

        public net.sf.saxon.s9api.XPathSelector load()
        Returns:
        An XPathSelector. The returned XPathSelector can be used to set up the dynamic context, and then to evaluate the expression.
        See Also:
        XPathExecutable.load()