| java.lang.Object org.springframework.xml.xpath.XPathExpressionFactory
XPathExpressionFactory | abstract public class XPathExpressionFactory (Code) | | Factory for compiled XPathExpression s, being aware of JAXP 1.3+ XPath functionality, and Jaxen. Mainly
for internal use of the framework.
The goal of this class is to avoid runtime dependencies a specific XPath engine, simply using the best XPath
implementation that is available. Prefers JAXP 1.3+ XPath implementations to Jaxen.
author: Arjen Poutsma See Also: XPathExpression since: 1.0.0 |
createXPathExpression | public static XPathExpression createXPathExpression(String expression, Map namespaces) throws IllegalStateException, XPathParseException(Code) | | Create a compiled XPath expression using the given string and namespaces. The namespace map should consist of
string prefixes mapped to string namespaces.
Parameters: expression - the XPath expression Parameters: namespaces - a map that binds string prefixes to string namespaces the compiled XPath expression throws: IllegalStateException - if neither JAXP 1.3+, or Jaxen are available throws: XPathParseException - if the given expression cannot be parsed |
|
|