org.aksw.commons.util
Class XPathUtils

java.lang.Object
  extended by org.aksw.commons.util.XPathUtils

public class XPathUtils
extends Object

Author:
Claus Stadler

Date: 12/5/11 Time: 12:48 PM


Constructor Summary
XPathUtils()
           
 
Method Summary
static XPathExpression compile(String expression)
           
static NodeList evalToNodes(Node node, String query)
           
static String evalToString(Node node, String query)
           
static String evalToString(Node node, String query, boolean dummy)
          This version doesn't throw an exception on error
static String evalToString(Node node, XPathExpression expr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathUtils

public XPathUtils()
Method Detail

compile

public static XPathExpression compile(String expression)
                               throws Exception
Throws:
Exception

evalToString

public static String evalToString(Node node,
                                  XPathExpression expr)

evalToString

public static String evalToString(Node node,
                                  String query)
                           throws XPathExpressionException
Throws:
XPathExpressionException

evalToString

public static String evalToString(Node node,
                                  String query,
                                  boolean dummy)
This version doesn't throw an exception on error

Parameters:
node -
query -
dummy -
Returns:

evalToNodes

public static NodeList evalToNodes(Node node,
                                   String query)


Copyright © 2012. All Rights Reserved.