Can any one please give me a solution to combine xmlNodelists to a single list .
I would use LINQ's .Concat method. The problem is that XmlNodeList is IEnumerable as opposed to IEnumerable< XmlNode >. Thus you have to call .Cast< XmlNode > on your XmlNodeLists.
For example:
var List = nodesoriginal.Cast<XmlNode>().Concat<XmlNode>(nodesupdate.Cast<XmlNode>());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With