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