public final class XPathHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
getByXPath(DomNode node,
String xpathExpr,
org.apache.xml.utils.PrefixResolver resolver,
boolean caseSensitiveXpathAttributes)
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.apache.xml.utils.PrefixResolver resolver, boolean caseSensitiveXpathAttributes)
T - the type classnode - the node to start searching fromxpathExpr - the XPath expressionresolver - the prefix resolver to use for resolving namespace prefixes, or nullcaseSensitiveXpathAttributes - true if the browser handles xpath attribute names case sensitivepublic static boolean isProcessingXPath()
Copyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.