I have an XML file and the structure is roughly like this:
<ScenarioList>
<Scenario>
... various things
</Scenario>
</ScenarioList>
This is being read into a WPF dialog box. Every time the user selects 'Next' I want to read the next Scenario data into the various fields. Obviously, the same thing goes for the user clicking on the 'Last' button, too.
But the question is: how do i just read in the information from the selected Scenario node?
Let me to try and clarify the question since it appears that it is 'overly broad':
I am familiar with loading and reading entire XML files. I just want to selectively read specific nodes. For example: How can I read just the data for the first Scenario node? Then, depending on user input, read just the data for the second Scenario node? Then, depending on user input, read just the data for the first scenario node? Or just the third scenario node?
In essence, I'm asking since XML doesn't have an 'index' how do I specify which instance of a node to read?