Package org.xmlunit.diff
Class RecursiveXPathBuilder
java.lang.Object
org.xmlunit.diff.RecursiveXPathBuilder
- All Implemented Interfaces:
Mapper<Node,
XPathContext>
Finds the XPathContext of a Node by recursively building up the XPathContext.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate XPathContext
private XPathContext
void
setNamespaceContext
(Map<String, String> prefix2uri) Establish a namespace context that will be used in for the XPath.
-
Field Details
-
prefix2uri
-
-
Constructor Details
-
RecursiveXPathBuilder
public RecursiveXPathBuilder()
-
-
Method Details
-
setNamespaceContext
Establish a namespace context that will be used in for the XPath.Without a namespace context (or with an empty context) the XPath expressions will only use local names for elements and attributes.
- Parameters:
prefix2uri
- maps from prefix to namespace URI.
-
apply
- Specified by:
apply
in interfaceMapper<Node,
XPathContext>
-
getXPathForNonAttribute
-
getXPathForAttribute
-