I want to create a Birt table report with dynamic number of columns from xml datasource. How can I go about it ?
While searching I have read that it can be done with scripted datasource but I couldn't find example or documentation of how to use scripted datasource with xml datasource.
I have also tried cross tab which only seems to work if there is some form aggregation (it doesn't work with strings).
Here is a sample xml:
<table>
<row>
<name></name>
<question_1>answer<question_1>
<question_2>answer<question_2>
</row>
<!-- or it can be like this. I can control how the xml is generated-->
<row>
<name></name>
<question>answer<question>
<question>answer<question>
</row>
</table>
the number of questions is different for different xml but they are the same for the rows within one xml. I want the data to appear in tabular form like this
name | question_1 | question_2