hi!
I know that normaly the setting about the xpath factory is configured by the jasperreports.properties file.
but is there also a way to set the xpath factory in the code?
The setting (or better the property) is: net.sf.jasperreports.xpath.executer.factory=net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory
add comment
1 Answer:
Posted on April 12, 2013 at 6:43am
This is how I do it in my (Java) code:
JasperReportsContext jrc = DefaultJasperReportsContext.getInstance();
jrc.setProperty(
JRXPathExecuterUtils.PROPERTY_XPATH_EXECUTER_FACTORY,
XalanNamedParameterXPathExecutor.class.getCanonicalName());
JasperFillManager jfm = JasperFillManager.getInstance(jrc);