The following code gives me a nodeList to repeat:
XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator();
XPathNodeIterator dossierNodes = thisNavigator.Select("changedthisname/dossiers/dossier");
I am processing this nodeList and I need to take another nodelist from this list. I am trying to do this using this code:
XPathNavigator alineanodesNavigator = dossierNodes.Current;
XPathNodeIterator alineaNodes = alineanodesNavigator.Select("/dossier/alineas/alinea");
I use this code inside a while loop (dossierNodes.MoveNext ()) and want this nodelist to be populated by all "allinea's". However, I am not getting any results back to the alineaNodes iterator.
The structure of the document is as follows:

How to get alinea nodes from the current node dossier ??
I was debugging, and it turned out:

Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream, System.Text.Encoding.UTF8);
string xml = reader.ReadToEnd();
XmlDocument thisXmlDoc = new XmlDocument();
thisXmlDoc.LoadXml(xml);
XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator();
source
share