title: Setting up subreport in iReport using XML datasource
body: <p>Can anyone explain in details (if possible, with screenshots) how to add a subreport (one to many relation)</p>
  
  <p>This being the xml data source</p>
  
  <pre><code>&lt;addressbook&gt;
   &lt;category name="home"&gt;
    &lt;person id="1"&gt;                                                           
        &lt;LASTNAME&gt;Davolio&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Nancy&lt;/FIRSTNAME&gt;
        &lt;hobbies&gt;
         &lt;hobby&gt;Radio Control&lt;/hobby&gt;
         &lt;hobby&gt;R/C Cars&lt;/hobby&gt;
         &lt;hobby&gt;Micro R/C Cars&lt;/hobby&gt;
         &lt;hobby&gt;Die-Cast Models&lt;/hobby&gt;
        &lt;/hobbies&gt;
        &lt;email&gt;email1@my.domain.it&lt;/email&gt;
        &lt;email&gt;email2@my.domain2.it&lt;/email&gt; 
  
    &lt;/person&gt;
    &lt;person id="2"&gt;
        &lt;LASTNAME&gt;Fuller&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Andrew&lt;/FIRSTNAME&gt;
        &lt;email&gt;email3@my.domain3.it&lt;/email&gt; 
        &lt;email&gt;email4@my.domain4.it&lt;/email&gt; 
    &lt;/person&gt;
    &lt;person id="3"&gt;                                                                 
        &lt;LASTNAME&gt;Leverling&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Janet&lt;/FIRSTNAME&gt;
        &lt;hobbies&gt;
         &lt;hobby&gt;Rockets&lt;/hobby&gt;
         &lt;hobby&gt;Puzzles&lt;/hobby&gt;
         &lt;hobby&gt;Science Hobby&lt;/hobby&gt;
         &lt;hobby&gt;Toy Horse&lt;/hobby&gt; 
        &lt;/hobbies&gt;
        &lt;email&gt;email45@my.domain3.it&lt;/email&gt; 
        &lt;email&gt;email455@my.domain4.it&lt;/email&gt; 
    &lt;/person&gt;
   &lt;/category&gt;
   &lt;category name="work"&gt;    
    &lt;person id="4"&gt;                                                            
        &lt;LASTNAME&gt;Peacock&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Margaret&lt;/FIRSTNAME&gt;
        &lt;hobbies&gt;
         &lt;hobby&gt;Toy Horse&lt;/hobby&gt; 
        &lt;/hobbies&gt;
        &lt;email&gt;Peacock@margaret.com&lt;/email&gt;  
    &lt;/person&gt;
    &lt;person id="5"&gt;
        &lt;LASTNAME&gt;Buchanan&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Steven&lt;/FIRSTNAME&gt;
        &lt;hobbies&gt;
        &lt;/hobbies&gt;
        &lt;email&gt;Buchanan@steven.com&lt;/email&gt;  
    &lt;/person&gt;
    &lt;person id="6"&gt;
        &lt;LASTNAME&gt;Suyama&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Michael&lt;/FIRSTNAME&gt;
    &lt;/person&gt;
    &lt;person id="7"&gt;
        &lt;LASTNAME&gt;King&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Robert&lt;/FIRSTNAME&gt;
    &lt;/person&gt;
   &lt;/category&gt;
   &lt;category name="Other"&gt;    
    &lt;person id="8"&gt;   
        &lt;LASTNAME&gt;Callahan&lt;/LASTNAME&gt;
        &lt;FIRSTNAME&gt;Laura&lt;/FIRSTNAME&gt;
        &lt;email&gt;email25@my.domain3.it&lt;/email&gt; 
    &lt;/person&gt;
    &lt;person id="9"&gt;
        &lt;LASTNAME&gt;Dodsworth&lt;/LASTNAME&gt;
        &lt;email&gt;Dodsworth@my.anne.it&lt;/email&gt; 
    &lt;/person&gt;
   &lt;/category&gt;                                                           
  &lt;/addressbook&gt;
  </code></pre>