ireport - How to create sub-reports using XML DataSources in JasperReports? -


I am using iReport and send me a sub-report Need to create XML datasource .

I'll only have an XML for the hole report, something like this:

  & lt; Question & gt; & Lt; Text & gt; What do you think about SO? & Lt; / Text & gt; & Lt; Options & gt; & Lt; Options & gt; Like it & lt; / Options & gt; & Lt; Options & gt; Really like it & lt; / Option & gt; & Lt; Options & gt; Love it & lt; / Options & gt; & Lt; / Options & gt; & Lt; / Question & gt;  

In the main report, it will be an extension of questions, each question will have several options. Each sub-report should be linked to the options for the question ... well master -Expand.

Whatever I could get with googling using SQL , I want to use XPath .

Take a look at this. There is an example that shows how it is done.


Comments