I have created a XElement with node which has XML as below.
I want to remove all the \"Rule\" nodes if they contain \"conditions\" node.
var el = xRelation.XPathSelectElement("/Rules/Rule/Conditions"); while (el != null) { el.Remove(); el = xRelation.XPathSelectElement("/Rules/Rule/Conditions"); }