title: Selecting nodes in XML
body: <p>I'm trying to select nodes using xpath in c#</p>
  
  <p>This is my XML file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;rss version="2.0"&gt;
      &lt;channel&gt;
          &lt;title&gt;Some other title&lt;/title&gt;
          &lt;item&gt;
              &lt;description&gt;&lt;![CDATA[&lt;img src="http://www.site.com/image.jps"/&gt;&lt;br /&gt;]]&gt;&lt;/description&gt;
  
          &lt;/item&gt;
          &lt;item&gt;
              &lt;title&gt;This title&lt;/title&gt;
              &lt;subtitle&gt;&lt;subtitle&gt;
              &lt;Date&gt;Fri, 21 Mar 2014 08:30:44 GMT&lt;/Date&gt;
              &lt;description&gt;Some description&lt;/description&gt;
          &lt;/item&gt;
          &lt;item&gt;
              &lt;title&gt;The other title&lt;/title&gt;
              &lt;subtitle&gt;&lt;subtitle&gt;
              &lt;Date&gt;Fri, 21 Mar 2014 08:30:44 GMT&lt;/Date&gt;
              &lt;description&gt;The other description&lt;/description&gt;
          &lt;/item&gt;
      &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>This is my incorrect code so far:</p>
  
  <pre><code>            // Load the document and set the root element.
              XmlDocument doc = new XmlDocument();
              doc.Load("file.xml");
  
              // Select nodes
              XmlNode root = doc.DocumentElement;
              XmlNodeList nodeList = root.SelectNodes("/channel/item/");
  
              foreach (XmlNode xn in nodeList)
              {
                  string fieldLine = xn["Title"].InnerText;
                  Console.WriteLine("Title: ", fieldLine);
              }
  </code></pre>
  
  <p>What I want to output the "title" from "item" like this:</p>
  
  <pre><code>This title
  The other title
  </code></pre>
  
  <p>Please let me know if you know how to do this</p>