title: How do I access innerText of a specific XMLnode
body: <p>Hi 
  I have the following XML fragment:</p>
  
  <pre><code>  &lt;Customer AccountNumber="4"&gt;
      &lt;CustomerInfo&gt;
        &lt;firstName&gt;Andrew&lt;/firstName&gt;
        &lt;lastName&gt;Walker&lt;/lastName&gt;
      &lt;/CustomerInfo&gt;
      &lt;Transactions&gt;
        &lt;AccountBalance&gt;595848584.4&lt;/AccountBalance&gt;
      &lt;/Transactions&gt;
    &lt;/Customer&gt;
  </code></pre>
  
  <p>from a bigger XML file. I want to access the <code>&lt;firsName&gt;</code> in C#.
  Currently I am doing the following:</p>
  
  <pre><code>    foreach (XmlNode customer in root)
      {
          i++;
          if(_AccNumber== Convert.ToInt32(customer.Attributes[0].Value))
          {
              searchNode = CustNodes[(i - 1)];
              string _firstName = searchNode.FirstChild.FirstChild.InnerText;
  
          }
      }
  </code></pre>
  
  <p>When I view <code>searchNode</code> in the debugger I can see in the results view element [0] which has a <code>localName</code> <code>CustomerInfo</code> as you expect. So in the debugger first name has the following path:</p>
  
  <pre><code>searchNode -&gt; [0].[0].[0].value
  </code></pre>
  
  <p>if that makes sense?</p>
  
  <p>Is there any better way of doing this? (without LINQ)? 
  Apologies, if something isn't clear....its 2:30AM! Let me know and I'll explain myself better.
  Thanks!!</p>