XmlDocument xDoc = new XmlDocument(); xDoc.Load(txtValueHelper.txtValue); XmlNodeList list = xDoc.SelectSingleNode("Check").ChildNodes; foreach (XmlNode node in list) { XmlElement xelem = (XmlElement)node; XmlNodeList listChild = xelem.ChildNodes; foreach (XmlNode nodeChild in listChild) { XmlElement xelemChild = (XmlElement)nodeChild; if(xelemChild.Name=="CheckName"&&xelemChild.InnerText==checkName) { xelemChild.RemoveAll(); } } }