title: Xml node reading for each loop
body: <p>I am trying to loop through an Xml file and display the value for account in a message.</p>
  
  <pre><code>XmlNodeList nodeList = testDoc.SelectNodes("/details/row/var");
  foreach (XmlNode no in nodeList)
  {
     XmlNode node = testDoc.SelectSingleNode("/details/row/var[@name='account']");
     test.actual = node.Attributes["value"].Value;
  
     MessageBox.Show(test.account);
   }
  </code></pre>
  
  <p>The message box is currently displaying the first record repeatidly, how can I get to the next record?</p>
  
  <p>Thanks for your input in advance.</p>