public class RecursiveXPathBuilder extends Object implements Mapper<Node,XPathContext>
Constructor and Description |
---|
RecursiveXPathBuilder() |
Modifier and Type | Method and Description |
---|---|
XPathContext |
apply(Node n) |
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)
apply
in interface Mapper<Node,XPathContext>
Copyright © 2001–2017 XMLUnit. All rights reserved.