Class Xpath

java.lang.Object
org.opencastproject.util.Xpath

public final class Xpath extends Object
A thin layer around XPath to evaluate expressions in the context of a Node.
  • Method Details

    • mk

      public static Xpath mk(Node node, NamespaceContext ns)
      Create a new evaluation context for node respecting the given namespace resolutions.
    • node

      public Option<Node> node(String expr)
      Evaluate the xpath expression against the contained document. The expression must return a node.