title: Appending linq query of xdocument to list
body: <p>Struggling with one aspect of my code that I hope someone could shed some light on.</p>
  
  <p>I'm pulling an xml document multiple times from within a simple foreach loop. I want to append my linq query to a list, but it is rewriting the list each time. Here's the code:</p>
  
  <pre><code>IEnumerable&lt;TranList&gt; tList;
  foreach (var t in otherList)
  {
           //pulling xml data from service here - code not shown
           XDocument xDoc = XDocument.Parse(xmlFromService);
           tList = from x in xDoc.Descendants("Items")
           select new TranList
           {
               BusDate = x.Descendants("BusDate").First().Value,
               SeqNum = x.Descendants("SeqNum").First().Value,
               Amount = x.Descendants("Amount").First().Value,
               Credit = x.Descendants("Credit").First().Value
           };
  }
  </code></pre>
  
  <p>and here's my xml for reference:</p>
  
  <pre><code>&lt;Items&gt;
      &lt;DbAmount&gt;25,465.58&lt;/DbAmount&gt;
      &lt;DBCount&gt;296&lt;/DBCount&gt;
      &lt;CrAmount&gt;.00&lt;/CrAmount&gt;
      &lt;CrCount&gt;0&lt;/CrCount&gt;
      &lt;Item&gt;
          &lt;ID&gt;0&lt;/ID&gt;
          &lt;BusDate&gt;20090126&lt;/BusDate&gt;
          &lt;BlockNum&gt;729&lt;/BlockNum&gt;
          &lt;SeqNum&gt;2&lt;/SeqNum&gt;
          &lt;RelSeqNum&gt;0&lt;/RelSeqNum&gt;
          &lt;Serial /&gt;
          &lt;Routing&gt;211690953&lt;/Routing&gt;
          &lt;Account&gt;123456789&lt;/Account&gt;
          &lt;Amount&gt;30.00&lt;/Amount&gt;
          &lt;Currency&gt;USD&lt;/Currency&gt;
          &lt;Credit&gt;DEBIT&lt;/Credit&gt;
          &lt;Onus&gt;TRANSIT&lt;/Onus&gt;
      &lt;/Item&gt;
      &lt;Item&gt;
      . . . . . . . . . . . . . . .
      &lt;/Item&gt;
      . . . . . . . . . . . . . . .
  &lt;/Items&gt;
  </code></pre>
  
  <p>Thanks for any help!</p>