XML Datasource Subreports. Through Ireport 2.0.5, I was able to create the addressbook example. However, the example required subreports with only one field. For instance, the hobbies subreport “Report Query†section set one field “hobbies†and set it to “.â€. Then in the main report, it included the hobbies subreport and “Use data source expression†was set to ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/person/hobbies/hobby"). This worked perfectly. This sample XML code has a node “Notes†with “note†and “commentâ€. If the subreport had two or more fields, how would I set up the subDataSource. Or should I have two separate subreports. One for notes and one for comment? <addressbook> <category name="home"> <person id="1"> <LASTNAME>Davolio</LASTNAME> <FIRSTNAME>Nancy</FIRSTNAME> <hobbies> <hobby>Radio Control</hobby> <hobby>R/C Cars</hobby> <hobby>Micro R/C Cars</hobby> <hobby>Die-Cast Models</hobby> </hobbies> <notes> <note>This is a note1</note> <comment>NC1</comment> <note>This is a note 2</note> <comment>NC2</comment> <note>This is a note3</note> <comment>NC3</comment> </notes> <email>email1@my.domain.it</email> <email>email2@my.domain2.it</email> </person> </category> </addressbook>