title: how to remove duplicate values in a XML file and keep the last one?
body: <p>I need to suppress all duplicate values in an XML file and keep the final value (refer to the target file).</p>
  
  <p>Kindly help, since I don't know if I should use xslt, python, or any .NET API</p>
  
  <p>Here is the source file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;catalog&gt;
  &lt;cd&gt;
      &lt;artist&gt;Bob Dylan&lt;/artist&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title&gt;Hide your heart&lt;/title&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title&gt;old_value&lt;/title&gt;
      &lt;title&gt;inbetween_value&lt;/title&gt;
      &lt;title&gt;new_value&lt;/title&gt;
  &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>The expected target file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;catalog&gt;
  &lt;cd&gt;
      &lt;artist&gt;Bob Dylan&lt;/artist&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title&gt;Hide your heart&lt;/title&gt;
  &lt;/cd&gt;
  &lt;cd&gt;
      &lt;title&gt;new_value&lt;/title&gt;
  &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>