removing all elements from xml file except root element c#
<p>I have an xml file </p>

<pre><code>&lt;Abc&gt; 
  &lt;image filename="1.jpg" heading="1.jpg" /&gt;
  &lt;image filename="10.jpg" heading="10.jpg" /&gt;
  &lt;image filename="11.jpg" heading="11.jpg" /&gt;
  &lt;image filename="2.jpg" heading="2.jpg" /&gt;
  &lt;image filename="3.jpg" heading="3.jpg" /&gt;
&lt;/Abc&gt;
</code></pre>

<p>I want to delete all elements except root element. How to accomplish this.Please help me.</p>
