Package org.custommonkey.xmlunit.jaxp13
Class Jaxp13XpathEngine
java.lang.Object
org.custommonkey.xmlunit.jaxp13.Jaxp13XpathEngine
- All Implemented Interfaces:
XpathEngine
XPath engine based on javax.xml.xpath.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEvaluate the result of executing the specified xpath syntaxselect
expression on the specified documentgetMatchingNodes
(String select, Document document) Execute the specified xpath syntaxselect
expression on the specified document and return the list of nodes (could have length zero) that matchvoid
Establish a namespace context.
-
Constructor Details
-
Jaxp13XpathEngine
Creates a Jaxp13XpathEngine.- Throws:
ConfigurationException
- if the underlying implementation does
-
-
Method Details
-
getMatchingNodes
Execute the specified xpath syntaxselect
expression on the specified document and return the list of nodes (could have length zero) that match- Specified by:
getMatchingNodes
in interfaceXpathEngine
- Parameters:
select
- the XPath expressiondocument
- the XML source to apply the expression to- Returns:
- matching nodes
- Throws:
XpathException
- if the underlying implementation does
-
evaluate
Evaluate the result of executing the specified xpath syntaxselect
expression on the specified document- Specified by:
evaluate
in interfaceXpathEngine
- Parameters:
select
- the XPath expressiondocument
- the XML source to apply the expression to- Returns:
- evaluated result
- Throws:
XpathException
- if the underlying implementation does
-
setNamespaceContext
Description copied from interface:XpathEngine
Establish a namespace context.- Specified by:
setNamespaceContext
in interfaceXpathEngine
- Parameters:
ctx
- the NamespaceContext
-