Package org.custommonkey.xmlunit
Interface XpathEngine
-
- All Known Implementing Classes:
Jaxp13XpathEngine,SimpleXpathEngine
public interface XpathEngineAbstraction of an engine evaluating XPath expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringevaluate(java.lang.String select, org.w3c.dom.Document document)Evaluate the result of executing the specified xpath syntaxselectexpression on the specified documentorg.w3c.dom.NodeListgetMatchingNodes(java.lang.String select, org.w3c.dom.Document document)Execute the specified xpath syntaxselectexpression on the specified document and return the list of nodes (could have length zero) that matchvoidsetNamespaceContext(NamespaceContext ctx)Establish a namespace context.
-
-
-
Method Detail
-
getMatchingNodes
org.w3c.dom.NodeList getMatchingNodes(java.lang.String select, org.w3c.dom.Document document) throws XpathExceptionExecute the specified xpath syntaxselectexpression on the specified document and return the list of nodes (could have length zero) that match- Parameters:
select-document-- Returns:
- list of matching nodes
- Throws:
XpathException
-
evaluate
java.lang.String evaluate(java.lang.String select, org.w3c.dom.Document document) throws XpathExceptionEvaluate the result of executing the specified xpath syntaxselectexpression on the specified document- Parameters:
select-document-- Returns:
- evaluated result
- Throws:
XpathException
-
setNamespaceContext
void setNamespaceContext(NamespaceContext ctx)
Establish a namespace context.
-
-