Herewith I am attaching an xml file. I wanted to read the values and loop through the elements and get the individual values. How can I do that?
XPathNavigator myNav = MainDataSource.CreateNavigator();
XPathNodeIterator nodes = myNav.Select("my:meetingAgenda/my:Agenda/my:agenda_NewBusinessGroup/my:agenda_newBusinessRepeatSection", NamespaceManager);//Repeating table
if (nodes.MoveNext())
{
XPathNavigator nodesNavigator = nodes.Current;
XPathNodeIterator nodesText =
nodesNavigator.SelectDescendants(XPathNodeType.Text,false);
while (nodesText.MoveNext())
{
//Console.WriteLine(nodesText.Current.Value);
}
}
This one loops through but I need to use selectsinglenode to get the values.