atifrauf Posted October 13, 2010 Share Posted October 13, 2010 HiI 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.ThanksCode: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now