title: Removing certain XML elements via XSLT
body: <p>My problem is: I have an XML file where I want to remove some child elements without removing parents. Can anyone help me to get the result by using ASP.NET? </p>
  
  <p>Here is my XML file:</p>
  
  <pre><code>&lt;Jobs&gt; 
    &lt;Job&gt;
      &lt;Title&gt;&lt;/Title&gt;
      &lt;Summary&lt;/Summary&gt;
      &lt;DateActive&gt;9/28/2009&lt;/DateActive&gt;
     &lt;DateExpires&gt;10/28/2009&lt;/DateExpires&gt;
     &lt;DateUpdated&gt;9/28/2009&lt;/DateUpdated&gt;
      &lt;Location&gt;
        &lt;Country&gt;India&lt;/Country&gt;
        &lt;State&gt;xxx&lt;/State&gt;
        &lt;City&gt;xxx&lt;/City&gt;
        &lt;PostalCode&gt;xxx&lt;/PostalCode&gt;
      &lt;/Location&gt;
      &lt;CompanyName&gt;Finance&lt;/CompanyName&gt;
      &lt;Salary&gt;
        &lt;Max&gt;70,000.00&lt;/Max&gt;
        &lt;Type&gt;Per Year&lt;/Type&gt;
        &lt;Currency&gt;Dollar&lt;/Currency&gt;
      &lt;/Salary&gt;
      &lt;BuilderFields /&gt;
      &lt;DisplayOptions /&gt;
      &lt;AddressType&gt;6&lt;/AddressType&gt;
      &lt;Job_Id&gt;123456&lt;/Job_Id&gt;
    &lt;/Job&gt;
  </code></pre>
  
  <p>From above XML I want to remove <code>&lt;Location&gt;</code> and <code>&lt;Salary&gt;</code> elements only, without deleting their child nodes. How would I use XSLT to get the desired result in XML file?</p>