foreach (KeyValuePair<string,> item in newXMlValue) { XElement node = (from c in orderXML.Descendants(item.Key) select c).FirstOrDefault(); if (!object.Equals(node, null)) { XElement xmlValue = XElement.Parse(item.Value.ToString()); // Here I am getting system out of memory Exception node.ReplaceWith(xmlValue) } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)