JRXmlDataSource and XPath expressions

Hi,

I was wanting to construct a XML datasource from an xml inputstream. As I understand it you need to set an XPath expression for the record node, and an Xpath expression for each of the fields in a record.

The constructor for an JRXmlDataSource takes in only one xpath expression as an argument so do you have to set either the record node or field nodes in the report xml?

Can you set all expressions via Java?

James
jimiohara's picture
195
Joined: Feb 28 2008 - 10:40am
Last seen: 15 years 3 months ago

1 Answer:

The built-in XML data source uses field descriptions as field XPath expressions. It does not support dynamic/programmatic field XPath expressions.

Regards,
Lucian
lucianc's picture
76368
Joined: Jul 17 2006 - 1:10am
Last seen: 2 days 11 hours ago
Feedback
randomness