public final class XPathHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
getByXPath(DomNode contextNode,
String xpathExpr,
org.htmlunit.xpath.xml.utils.PrefixResolver prefixResolver)
Evaluates an XPath expression from the specified node, returning the resultant nodes.
|
static <T> List<T> |
getByXPath(Node node,
XPathAdapter xpath,
org.htmlunit.xpath.xml.utils.PrefixResolver prefixResolver) |
static boolean |
isProcessingXPath()
Returns whether the thread is currently evaluating XPath expression or no.
|
public static <T> List<T> getByXPath(DomNode contextNode, String xpathExpr, org.htmlunit.xpath.xml.utils.PrefixResolver prefixResolver)
T
- the type classcontextNode
- the node to start searching fromxpathExpr
- the XPath expressionprefixResolver
- the prefix resolver to use for resolving namespace prefixes, or nullpublic static <T> List<T> getByXPath(Node node, XPathAdapter xpath, org.htmlunit.xpath.xml.utils.PrefixResolver prefixResolver) throws TransformerException
TransformerException
public static boolean isProcessingXPath()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.