KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to loop through an Xml file and display the value for account in a 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 displaying the first record repeatidly, how can I get to the next record? Thanks for your input in advance.
Tags (comma-separated)
Save Edits
Cancel