com.gargoylesoftware.htmlunit.html.xpath
Class XPathUtils

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.xpath.XPathUtils

public final class XPathUtils
extends Object

Collection of XPath utility methods.

Version:
$Revision: 8397 $
Author:
Ahmed Ashour, Chuck Dumont

Method Summary
static List<Object> getByXPath(DomNode node, String xpathExpr, org.apache.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByXPath

public static List<Object> getByXPath(DomNode node,
                                      String xpathExpr,
                                      org.apache.xml.utils.PrefixResolver resolver)
Evaluates an XPath expression from the specified node, returning the resultant nodes.

Parameters:
node - the node to start searching from
xpathExpr - the XPath expression
resolver - the prefix resolver to use for resolving namespace prefixes, or null
Returns:
the list of objects found

isProcessingXPath

public static boolean isProcessingXPath()
Returns whether the thread is currently evaluating XPath expression or no.

Returns:
whether the thread is currently evaluating XPath expression or no


Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.