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: