title: How to remove the duplicate nodes from xml using xslt
body: <p>I tried n number of options to remove the duplicate node from xml but not able to achieve the correct result.Below is the input xml</p>
  
  <pre><code>&lt;root&gt;
    &lt;paymentFlag&gt;true&lt;/paymentFlag&gt;
    &lt;cardFlag&gt;true&lt;/cardFlag&gt;
    &lt;pinFlag&gt;true&lt;/pinFlag&gt;
    &lt;paymentFlag&gt;true&lt;/paymentFlag&gt;
    &lt;outputFlag&gt;false&lt;/outputFlag&gt;
    &lt;pinFlag&gt;true&lt;/pinFlag&gt;
    &lt;cardFlag&gt;true&lt;/cardFlag&gt;
    ...
  &lt;/root&gt;
  </code></pre>
  
  <p>Inside root element I have a n number of nodes all in same level but some of them are duplicate. I want to remove them and expecting a below output.</p>
  
  <pre><code>&lt;root&gt;
    &lt;paymentFlag&gt;true&lt;/paymentFlag&gt;
    &lt;cardFlag&gt;true&lt;/cardFlag&gt;
    &lt;pinFlag&gt;true&lt;/pinFlag&gt;
    &lt;outputFlag&gt;false&lt;/outputFlag&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Please provide your input.</p>