XmlDocument doc = new XmlDocument(); doc.Load(path); XmlNodeList nodes = doc.SelectNodes("//Setting[@name='File1']"); for (int i = nodes.Count - 1; i >= 0; i--) { nodes[i].ParentNode.RemoveChild(nodes[i]); } doc.Save(path);
doc = new XmlDocument();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)