title: XML, XDocument.Parse and foreach XElement
body: <p>I made XML file today for my C# application.<br>
  XML (i putted in pastebin, 'cause its kinda big xml code, sorry):  <a href="http://pastebin.com/6UKgaULe" rel="nofollow">Pastebin</a><br>
  and a code inside of C#  </p>
  
  <pre><code>private void web_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
  {
      if (e.Error == null)
      {
          XDocument doc = XDocument.Parse(e.Result);
  
          foreach (XElement xe in doc.Root.Element("builds").Element("build").Element("items").Elements("item"))
          {
              string s0 = xe.Element("name").ToString();
              string s1 = xe.Element("uri").ToString();
              string[] s2 = new string[2];
  
              s2[0] = s0;
              s2[1] = s1;
              ListViewItem lvi = new ListViewItem(s2);
              listView1.Items.Add(lvi);
          }
  
      }
  }
  </code></pre>
  
  <p>And I get error - <code>Object reference not set to an instance of an object.</code> or sometimes its not showing at all</p>