| java.lang.Object org.custommonkey.xmlunit.SimpleXpathEngine
SimpleXpathEngine | public class SimpleXpathEngine implements XpathEngine,XSLTConstants(Code) | | Simple class for accessing the Nodes matched by an Xpath expression, or
evaluating the String value of an Xpath expression.
Uses a copy-of or value-of XSL template (as
appropriate) to execute the Xpath.
This is not an efficient method for accessing XPaths but it is portable
across underlying transform implementations. (Yes I know Jaxen is too, but
this approach seemed to be the simplest thing that could possibly work...)
Examples and more at xmlunit.sourceforge.net
|
getMatchingNodes | public NodeList getMatchingNodes(String select, Document document) throws ConfigurationException, XpathException(Code) | | Execute the specified xpath syntax select expression
on the specified document and return the list of nodes (could have
length zero) that match
Parameters: select - Parameters: document - list of matching nodes |
|
|