title: Reading the Stack Overflow RSS feed
body: <p>I'm trying to get a list of unanswered questions from <a href="https://stackoverflow.com/feeds/">the feed</a>, but I am having trouble reading it.</p>
  
  <pre><code>const string RECENT_QUESTIONS = "https://stackoverflow.com/feeds";
  
  XmlTextReader reader;
  XmlDocument doc;
  
  // Load the feed in
  reader = new XmlTextReader(RECENT_QUESTIONS);
  //reader.MoveToContent();
  
  // Add the feed to the document
  doc = new XmlDocument();
  doc.Load(reader);
  
  // Get the &lt;feed&gt; element
  XmlNodeList feed = doc.GetElementsByTagName("feed");
  
  // Loop through each item under feed and add to entries
  IEnumerator ienum = feed.GetEnumerator();
  List&lt;XmlNode&gt; entries = new List&lt;XmlNode&gt;();
  while (ienum.MoveNext())
  {
      XmlNode node = (XmlNode)ienum.Current;
      if (node.Name == "entry")
      {
          entries.Add(node);
      }
  }
  
  // Send entries to the data grid control
  question_list.DataSource = entries.ToArray();
  </code></pre>
  
  <p>I hate to post such a "please fix the code" question, but I'm really stuck. I've tried several tutorials (some giving compile errors) but to no help. I assume I'm going the right way using an <code>XmlReader</code> and an <code>XmlDocument</code> as that's been a common thing from each guide.</p>