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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the result of executing the specified xpath syntaxselectexpression on the specified documentgetMatchingNodes(String select, Document document) Execute the specified xpath syntaxselectexpression on the specified document and return the list of nodes (could have length zero) that matchvoidEstablish a namespace context.
-
Field Details
-
engine
-
-
Constructor Details
-
Jaxp13XpathEngine
- Throws:
ConfigurationException
-
-
Method Details
-
getMatchingNodes
Execute the specified xpath syntaxselectexpression on the specified document and return the list of nodes (could have length zero) that match- Specified by:
getMatchingNodesin interfaceXpathEngine- Parameters:
select-document-- Returns:
- list of matching nodes
- Throws:
XpathException
-
evaluate
Evaluate the result of executing the specified xpath syntaxselectexpression on the specified document- Specified by:
evaluatein interfaceXpathEngine- Parameters:
select-document-- Returns:
- evaluated result
- Throws:
XpathException
-
setNamespaceContext
Description copied from interface:XpathEngineEstablish a namespace context.- Specified by:
setNamespaceContextin interfaceXpathEngine
-