title: How to remove duplicate XML nodes using XSLT
body: <p>I've got an extremely long XML file, like</p>
  
  <pre><code>&lt;Root&gt;
     &lt;ele1&gt;
        &lt;child1&gt;context1&lt;/child1&gt;
        &lt;child2&gt;test1&lt;/child2&gt;
        &lt;child1&gt;context1&lt;/child1&gt;
     &lt;/ele1&gt;
  
     &lt;ele2&gt;
        &lt;child1&gt;context2&lt;/child1&gt;
        &lt;child2&gt;test2&lt;/child2&gt;
        &lt;child1&gt;context2&lt;/child1&gt;
     &lt;/ele2&gt;
     &lt;ele3&gt;...........&lt;elen&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Now I want to remove all the second <code>&lt;child1&gt;</code> in each <code>&lt;ele&gt;</code> using xslt, is it possible?
  The result would be like this:</p>
  
  <pre><code>&lt;Root&gt;
     &lt;ele1&gt;
        &lt;child1&gt;context1&lt;/child1&gt;
        &lt;child2&gt;test1&lt;/child2&gt;
     &lt;/ele1&gt;
  
     &lt;ele2&gt;
        &lt;child1&gt;context2&lt;/child1&gt;
        &lt;child2&gt;test2&lt;/child2&gt;
     &lt;/ele2&gt;
         &lt;ele3&gt;...........&lt;elen&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Thank u, BR</p>
  
  <p>Allen</p>