title: delete element from xml using LINQ
body: <p>I've a xml file like:</p>
  
  <pre><code>&lt;starting&gt;
     &lt;start&gt;
        &lt;site&gt;mushfiq.com&lt;/site&gt;
        &lt;site&gt;mee.con&lt;/site&gt;
        &lt;site&gt;ttttt.co&lt;/site&gt;
        &lt;site&gt;jkjhkhjkh&lt;/site&gt;
        &lt;site&gt;jhkhjkjhkhjkhjkjhkh&lt;/site&gt;
       &lt;site&gt;dasdasdasdasdasdas&lt;/site&gt;
   &lt;/start&gt;
  &lt;/starting&gt;
  </code></pre>
  
  <p>Now I need to delete any <code>&lt;site&gt;...&lt;/site&gt;</code> and value will randomly be given from a textbox.</p>
  
  <p>Here is my code : </p>
  
  <pre><code>XDocument doc = XDocument.Load(@"AddedSites.xml");                
  var deleteQuery = from r in doc.Descendants("start") where r.Element("site").Value == txt.Text.Trim() select r;
  foreach (var qry in deleteQuery)
  {
      qry.Element("site").Remove();
  }
  doc.Save(@"AddedSites.xml");
  </code></pre>
  
  <p>If I put the value of first element in the textbox then it can delete it, but if I put any value of element except the first element's value it could not able to delete! I need I'll put any value of any element...as it can be 2nd element or 3rd or 4th and so on.... can anyone help me out?</p>