title: Parsing XML file using C#?
body: <p>I'm new to both XML and C#; I'm trying to find a way to efficiently parse a given xml file to retrieve relevant numerical values, base on the "proj_title" value=heat_run or any other possible values. For example, calculating the duration of a particular test run (proj_end val-proj_start val).</p>
  
  <pre><code>ex.xml:
  
  &lt;proj ID="2"&gt;
        &lt;proj_title&gt;heat_run&lt;/proj_title&gt;
        &lt;proj_start&gt;100&lt;/proj_start&gt;
        &lt;proj_end&gt;200&lt;/proj_end&gt;
  &lt;/proj&gt;
  </code></pre>
  
  <p>...
  We can't search by proj ID since this value is not fixed from test run to test run. The above file is huge: ~8mb, and there's ~2000 tags w/ the name proj_title. is there an efficient way to first find all tag names w/ proj_title="heat_run", then to retrieve the proj start and end value for this particular proj_title using C#??</p>
  
  <p>Here's my current C# code:</p>
  
  <pre><code>public class parser
  {
       public static void Main()
       {
           XmlDocument xmlDoc= new XmlDocument();
           xmlDoc.Load("ex.xml");
  
           //~2000 tags w/ proj_title
           //any more efficient way to just look for proj_title="heat_run" specifically?
           XmlNodeList heat_run_nodes=xmlDoc.GetElementsByTagName("proj_title");
       }
  }    
  </code></pre>