I am trying to skip an Xml file and display the value for the account in the message.
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); }
The message box is currently re-recording the first record, how can I go to the next record?
Thanks for your input in advance.
c # xml loops foreach nodes
Ebikeneser
source share