public class XalanXPathExecuter extends Object implements JRXPathExecuter
| Constructor and Description |
|---|
XalanXPathExecuter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NodeList |
selectNodeList(Node contextNode,
String expression)
Selects a node list by evaluating an XPath expression on a context node.
|
Object |
selectObject(Node contextNode,
String expression)
Selects an object by evaluating an XPath expression on a context node.
|
public NodeList selectNodeList(Node contextNode, String expression) throws JRException
JRXPathExecuterselectNodeList in interface JRXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expressionJRException - if the XPath evaluation failedpublic Object selectObject(Node contextNode, String expression) throws JRException
JRXPathExecuterjava.lang.String, java.lang.Number or java.lang.Boolean.selectObject in interface JRXPathExecutercontextNode - the context node (a document can also be used)expression - the XPath expressionJRException - if the XPath evaluation failedCopyright © 2014. All rights reserved.