Jump to content
Changes to the Jaspersoft community edition download ×

XML datasource input in iReport


3rwin

Recommended Posts

Is there a possibility to get a list of the fields within your input XML in the "Library/Fields"?

 

Now i have to "add" them manually in the "Library/Fields".

 

Example:

 

I have the following XML

Code:

<?xml version="1.0" encoding="UTF-8"?>
<palette>
<color>
<name>Red</name>
<red>255</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<name>Green</name>
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
<color>
<name>Blue</name>
<red>255</red>
<green>0</green>
<blue>0</blue>
</color>
</palette>

 

I define my XML datasource, open the report query, choose XPath as query language and type /palette/color. Now i would expect the "Read fields" button to be available (it isn't) so i could press it and below the "name", "red", "green" and "blue" fields would appear.

 

Am i doing something wrong or is this not possible ?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...