| java.lang.Object com.rimfaxe.xml.compatibility.fatpath.XPathAPI
XPathAPI | public class XPathAPI (Code) | | Facade class providing a convenient API to the XPath parser and
evaluator. For efficiency, parsed XPath expressions are cached.
For ease of migration from Xalan XPath this class has the same name
and has the same method names as the Xalan XPathAPI class. See Facade
Pattern
Copyright (C) 2002 Hewlett-Packard Company.
This file is part of Sparta, an XML Parser, DOM, and XPath library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU
Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option)
any later version. This library is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
version: $Date: 2002/12/13 23:49:24 $ $Revision: 1.2 $ author: Eamonn O'Brien-Strain See Also: org.apache.xpath.XPathAPI |
selectSingleElement | public static Element selectSingleElement(Element element, String xpathString) throws XPathException, IOException(Code) | | the first element that matches the relative XPathexpression with respect to the context element, or null ifthere is no match. |
selectSingleString | public static String selectSingleString(Element element, String xpathString) throws XPathException, IOException(Code) | | the first element that matches the relative XPathexpression with respect to the context element, or null ifthere is no match. |
|
|