org.htmlcleaner
Class XPather

java.lang.Object
  extended by org.htmlcleaner.XPather

public class XPather
extends Object

Utility for searching cleaned document tree with XPath expressions.

Examples of supported axes:


Constructor Summary
XPather(String expression)
          Constructor - creates XPather instance with specified XPath expression.
 
Method Summary
 Object[] evaluateAgainstNode(TagNode node)
          Main public method for this class - a way to execute XPath expression against specified TagNode instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPather

public XPather(String expression)
Constructor - creates XPather instance with specified XPath expression.

Parameters:
expression -
Method Detail

evaluateAgainstNode

public Object[] evaluateAgainstNode(TagNode node)
                             throws XPatherException
Main public method for this class - a way to execute XPath expression against specified TagNode instance.

Parameters:
node -
Throws:
XPatherException


Copyright © 2006-2013. All Rights Reserved.