title: XmlDocument parse using Node ID in C#
body: <p>How to parse through XML file using a node Id. I want to get to <code>&lt;Rate&gt;0.8988&lt;/Rate&gt;</code> node of <code>&lt;rate id="USDEUR"&gt;</code></p>
  
  <pre><code>&lt;results&gt;
      &lt;rate id="USDEUR"&gt;
      &lt;Name&gt;USD/EUR&lt;/Name&gt;
      &lt;Rate&gt;0.8988&lt;/Rate&gt;
      &lt;Date&gt;5/27/2016&lt;/Date&gt;
      &lt;Time&gt;6:56pm&lt;/Time&gt;
      &lt;Ask&gt;0.8989&lt;/Ask&gt;
      &lt;Bid&gt;0.8988&lt;/Bid&gt;
      &lt;/rate&gt;
      &lt;rate id="USDJPY"&gt;
      &lt;Name&gt;USD/JPY&lt;/Name&gt;
      &lt;Rate&gt;110.1250&lt;/Rate&gt;
      &lt;Date&gt;5/27/2016&lt;/Date&gt;
      &lt;Time&gt;6:53pm&lt;/Time&gt;
      &lt;Ask&gt;110.1500&lt;/Ask&gt;
      &lt;Bid&gt;110.1250&lt;/Bid&gt;
      &lt;/rate&gt;
      &lt;/results&gt;
  </code></pre>
  
  <p>This is what I am able to do so far.</p>
  
  <pre><code>string sitemapurl = @"http://example.com/xmlforexrates";
  XmlDocument xmlDoc = new XmlDocument();
  xmlDoc.Load(sitemapurl);
  XmlNodeList nodeIds = xmlDoc.SelectNodes("/results/rate");
  </code></pre>
  
  <p>Right now it's getting all the <code>&lt;rate&gt;</code> nodes in the NodeList. I just wanted to get node on Id based for example only <code>&lt;rate id="USDEUR"&gt;</code></p>
  
  <p>Please help me do this. Thanks</p>