title: How to delete specific node by attribute from XML?
body: <p>I am novice and struggling in some XML operations Like open and Delete. I have done the Add part.</p>
  
  <p>Partys.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Partys&gt;
    &lt;Customers&gt;
      &lt;Customer CustomerID="1"&gt;
        &lt;PersonalName&gt;
          &lt;LastName&gt;Baker&lt;/LastName&gt;
          &lt;FirstName&gt;Eugene&lt;/FirstName&gt;
        &lt;/PersonalName&gt;
        &lt;Citizenship&gt;Africa&lt;/Citizenship&gt;
      &lt;/Customer&gt;
      &lt;Customer CustomerID="2"&gt;
        &lt;PersonalName&gt;
          &lt;LastName&gt;Baker&lt;/LastName&gt;
          &lt;FirstName&gt;Eugene&lt;/FirstName&gt;
        &lt;/PersonalName&gt;
        &lt;Citizenship&gt;Africa&lt;/Citizenship&gt;
      &lt;/Customer&gt;
    &lt;/Customers&gt;
   &lt;/Partys&gt;
  </code></pre>
  
  <p>Q: I want to open the node detail customer where CustomerID (Attribute) is 1. What is the C# code for this?</p>
  
  <p>Q: I want to delete the node customer where CustomerID (Attribute) is 2. What is the C# code for this?</p>