Interface XpathEngine

All Known Implementing Classes:
Jaxp13XpathEngine, SimpleXpathEngine

public interface XpathEngine
Abstraction of an engine evaluating XPath expressions.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(String select, Document document)
    Evaluate the result of executing the specified xpath syntax select expression on the specified document
    getMatchingNodes(String select, Document document)
    Execute the specified xpath syntax select expression on the specified document and return the list of nodes (could have length zero) that match
    void
    Establish a namespace context.
  • Method Details

    • getMatchingNodes

      NodeList getMatchingNodes(String select, Document document) throws XpathException
      Execute the specified xpath syntax select expression on the specified document and return the list of nodes (could have length zero) that match
      Parameters:
      select -
      document -
      Returns:
      list of matching nodes
      Throws:
      XpathException
    • evaluate

      String evaluate(String select, Document document) throws XpathException
      Evaluate the result of executing the specified xpath syntax select expression on the specified document
      Parameters:
      select -
      document -
      Returns:
      evaluated result
      Throws:
      XpathException
    • setNamespaceContext

      void setNamespaceContext(NamespaceContext ctx)
      Establish a namespace context.