public final class Xpath extends Object
| Modifier and Type | Method and Description |
|---|---|
static Xpath |
mk(Node node)
Create a new evaluation context for
node. |
static Xpath |
mk(Node node,
NamespaceContext ns)
Create a new evaluation context for
node respecting the given namespace resolutions. |
Option<Node> |
node(String expr)
Evaluate the xpath expression against the contained document.
|
Option<NodeList> |
nodeSet(String expr)
Evaluate the xpath expression against the contained document.
|
Option<String> |
string(String expr)
Evaluate the xpath expression against the contained document.
|
List<String> |
strings(String expr)
Evaluate the xpath expression against the contained document.
|
public static Xpath mk(Node node, NamespaceContext ns)
node respecting the given namespace resolutions.public Option<Node> node(String expr)
public Option<String> string(String expr)
public Option<NodeList> nodeSet(String expr)
Copyright © 2009–2021 Opencast Project. All rights reserved.