I am needing to go through this collection of xml elements and extract data from child nodes of each element. But I am only about halfway getting there. What am I missing?
///Here is how I have set up the xml doc with a typed dataset and all good:
XmlDataDocument xmlDoc = new XmlDataDocument(dsReturnRe
XmlNamespaceManager nsmgr = new XmlNamespaceManager(xmlDoc
XmlElement root = xmlDoc.DocumentElement;
XmlNodeList nlList = root.GetElementsByTagName(
The nlList contains all the nodes I need, I can see the children with all the data I am after but I just cannot access it to save my sanity. Here is a sample of what I've attempted:
foreach (XmlNode entry in nlList)
string strTest2 = entry.SelectNodes("/xsd:sd
nsmgr).ToString(); /// this gives me nothing
string strType = entry.ChildNodes.Item(2).F
///this works fine but does me no good
string strTest = entry.ChildNodes.Item(1).F
///since the indexes will vary depending on "Type"
Any guidance much appreciated.