I have a xml-file:
&
XElement t = XElement.Load("filePath"); t.Element("level").Element("node1").Value = ""; t.Element("level").Element("node2").Value = ""; t.Element("level").Element("node3").Value = ""; t.Save("filePath");