public class Jaxp13XpathEngine extends Object implements XpathEngine
| Constructor and Description |
|---|
Jaxp13XpathEngine()
Creates a Jaxp13XpathEngine.
|
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String select,
Document document)
Evaluate the result of executing the specified xpath syntax
select expression on the specified document |
NodeList |
getMatchingNodes(String select,
Document document)
Execute the specified xpath syntax
select expression
on the specified document and return the list of nodes (could have
length zero) that match |
void |
setNamespaceContext(NamespaceContext ctx)
Establish a namespace context.
|
public Jaxp13XpathEngine()
throws ConfigurationException
ConfigurationException - if the underlying implementation doespublic NodeList getMatchingNodes(String select, Document document) throws XpathException
select expression
on the specified document and return the list of nodes (could have
length zero) that matchgetMatchingNodes in interface XpathEngineselect - the XPath expressiondocument - the XML source to apply the expression toXpathException - if the underlying implementation doespublic String evaluate(String select, Document document) throws XpathException
select expression on the specified documentevaluate in interface XpathEngineselect - the XPath expressiondocument - the XML source to apply the expression toXpathException - if the underlying implementation doespublic void setNamespaceContext(NamespaceContext ctx)
XpathEnginesetNamespaceContext in interface XpathEnginectx - the NamespaceContextCopyright © 2001–2025 XMLUnit. All rights reserved.