au.gov.nehta.vendorlibrary.pcehr.clients.common.util
Class XPathUtils

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.util.XPathUtils

public final class XPathUtils
extends java.lang.Object

XPath utilities.


Method Summary
static java.lang.String evaluateXPath(java.lang.String expression, org.w3c.dom.Document doc)
          Evaluate an XPath expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluateXPath

public static java.lang.String evaluateXPath(java.lang.String expression,
                                             org.w3c.dom.Document doc)
                                      throws javax.xml.xpath.XPathExpressionException
Evaluate an XPath expression.

Parameters:
expression - Expression to validate.
doc - DOM to evaluate against.
Returns:
Result of evaluation.
Throws:
javax.xml.xpath.XPathExpressionException - Thrown in the event of a failure to validate an XPath expression.