At the following code i use foreach loop to check each node in nodelist and remove some of them. after i remove one node the foreach loop throw the following error: \"The el
I found an alterative: Convert xmlnodelist to list<>
XmlNodeList has a method Cast and can be used as follows:
XmlNodeList
Cast
var listOfNodes = new List(xmlNodeList.Cast());