The following code gives me a nodeList to itterate over:
XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator();
XPathNodeIterator dossierNodes = thisNavigator.Select("changedthisname/dossiers/dossier");
I am processing this nodeList, and i need to grab another nodelist out of this list. I am trying to do this by using this code:
XPathNavigator alineanodesNavigator = dossierNodes.Current;
XPathNodeIterator alineaNodes = alineanodesNavigator.Select("/dossier/alineas/alinea");
I am using this code inside the while(dossierNodes.MoveNext()) loop and want this nodelist to be filled up with all "allinea's". However i am not getting any results back to my alineaNodes iterator.
The document structure is like this:
How to get the alinea nodes from the current dossier node??
I debugged and this came 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();