javax.xml.xpath

  • The Java API for XML Processing (JAXP) provides interfaces and classes for evaluating XPath expressions on XML documents, including XPath, XPathExpression, XPathFunction, XPathFunctionResolver, and XPathVariableResolver.

  • XPathFactory can be used to create XPath objects, which provide access to the XPath evaluation environment and expressions.

  • Several exception classes such as XPathException, XPathExpressionException, XPathFactoryConfigurationException, and XPathFunctionException are defined to handle errors during XPath processing.

  • XPathConstants defines constants that can be used in XPath expressions.

Interfaces

XPath

XPath provides access to the XPath evaluation environment and expressions. 

XPathExpression

XPathExpression provides access to compiled XPath expressions. 

XPathFunction

XPathFunction provides access to XPath functions. 

XPathFunctionResolver

XPathFunctionResolver provides access to the set of user defined XPathFunctions. 

XPathVariableResolver

XPathVariableResolver provides access to the set of user defined XPath variables. 

Classes

XPathConstants

XPath constants. 

XPathFactory

An XPathFactory instance can be used to create XPath objects. 

Exceptions

XPathException XPathException represents a generic XPath exception. 
XPathExpressionException XPathExpressionException represents an error in an XPath expression. 
XPathFactoryConfigurationException XPathFactoryConfigurationException represents a configuration error in a XPathFactory environment. 
XPathFunctionException XPathFunctionException represents an error with an XPath function.