title: How to populate a listview from excel-exported xml?
body: <p>Previously, I only know using the following "add" method to add item to listview row by row using arrayadapter:</p>
  
  <pre><code>    private ArrayList&lt;pregnancyItem&gt; generateData() {
          ArrayList&lt;pregnancyItem&gt; items = new ArrayList&lt;pregnancyItem&gt;();
  
          items.add(new pregnancyItem("ACARBOSE", "GLUCOBAY", "B", "B3", "Probably compatible", "unknown/not recommended"));
          items.add(new pregnancyItem("ACARBOSE", "GLUCOBAY", "B", "B3", "Probably compatible", "unknown/not recommended"));
  
          return items;
      }
  </code></pre>
  
  <p>Now the problem comes as there will be 1000 row in the list. I already learnt to export the excel as XML data like the following format:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;data-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;record&gt;
          &lt;GenericName&gt;Acarbose&lt;/GenericName&gt;
          &lt;BrandName&gt;Glucobay&lt;/BrandName&gt;
          &lt;FDA&gt;B&lt;/FDA&gt;
          &lt;AUS&gt;B3&lt;/AUS&gt;
          &lt;Briggs&gt;Probably compatible&lt;/Briggs&gt;
          &lt;Lexicomp&gt;Excretion in breast milk unknown/not recommended&lt;/Lexicomp&gt;
      &lt;/record&gt;
      &lt;record&gt;
          &lt;GenericName&gt;Acarbose&lt;/GenericName&gt;
          &lt;BrandName&gt;Glucobay&lt;/BrandName&gt;
          &lt;FDA&gt;B&lt;/FDA&gt;
          &lt;AUS&gt;B3&lt;/AUS&gt;
          &lt;Briggs&gt;Probably compatible&lt;/Briggs&gt;
          &lt;Lexicomp&gt;Excretion in breast milk unknown/not recommended&lt;/Lexicomp&gt;
      &lt;/record&gt;
  &lt;/data-set&gt;
  </code></pre>
  
  <p>Is there a way to populate a listview in a smarter way using this format?</p>