Example usage for Java org.jdom2.xpath XPath fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addNamespace(String prefix, String uri) Adds a namespace definition (prefix and URI) to the list of namespaces known of this XPath expression. |
XPath | newInstance(String path) Creates a new XPath wrapper object, compiling the specified XPath expression. |
List> | selectNodes(Object context) Evaluates the wrapped XPath expression and returns the list of selected items. |
Object | selectSingleNode(Object context, String path) Evaluates the wrapped XPath expression and returns the first entry in the list of selected nodes (or atomics). |
Object | selectSingleNode(Object context) Evaluates the wrapped XPath expression and returns the first entry in the list of selected nodes (or atomics). |