Jump to content
Changes to the Jaspersoft community edition download ×

Problem when using JRXmlDataSource


atifrauf

Recommended Posts

Hi

I am trying to use Xml as a datasource in jasper report but getting a problem. The structure of my xml is given below:

<A>
    <B>
       <Name>x</Name>
    </B>
    <B>
       <Name>y</Name>
    </B>
</A>

When I display the above data in a table I see value "x" repeated twice instead of seeing values x,y in two rows. My table dataset is as follows:

((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/A/B")

Does any one has any suggestion as to what could be going wrong. I have tried several things but still no luck.

Thanks

Code:


			
		
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...