XPathExpression


XPathExpression javax.xml.xpath

Java 5.0

If an XPath expression is to be evaluated more than once, it is not efficient to call the XPath.evaluate( ) method repeatedly. Instead, compile the expression to an XPathExpression using the XPath.compile( ) method and then evaluate it using one of the evaluate( ) methods of XPathExpression . The evaluate( ) methods of XPathExpression behave just like the corresponding methods of XPath . See XPath for details.

 public interface  XPathExpression  {  // Public Instance Methods  String  evaluate  (org.xml.sax.InputSource  source  )          throws XPathExpressionException;        String  evaluate  (Object  item  ) throws XPathExpressionException;        Object  evaluate  (Object  item  , javax.xml.namespace.QName  returnType  )          throws XPathExpressionException;        Object  evaluate  (org.xml.sax.InputSource  source  , javax.xml.namespace.         QName  returnType  ) throws XPathExpressionException;   } 

Returned By

XPath.compile( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net