public class RecursiveXPathBuilder extends Object implements Mapper<Node,XPathContext>
| Constructor and Description |
|---|
RecursiveXPathBuilder() |
| Modifier and Type | Method and Description |
|---|---|
XPathContext |
apply(Node n)
Performs the mapping operation.
|
void |
setNamespaceContext(Map<String,String> prefix2uri)
Establish a namespace context that will be used in for the
XPath.
|
public void setNamespaceContext(Map<String,String> prefix2uri)
Without a namespace context (or with an empty context) the XPath expressions will only use local names for elements and attributes.
prefix2uri - maps from prefix to namespace URI.public XPathContext apply(Node n)
Mapperapply in interface Mapper<Node,XPathContext>n - the input to the mapping functionCopyright © 2001–2025 XMLUnit. All rights reserved.