title: How can I remove namespace prefixes in xml without removing the xmlns tag?
body: <p>I am trying to remove namespace prefixes. I have tried a couple XSLTs but they do not seem to work (will show why after the example).</p>
  
  <p>Example current xml output:</p>
  
  <pre><code>&lt;s:Body     xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;ns:GetPriceSet     xmlns:ns="http://abc.org/01/02"&gt;
  &lt;ns:og&gt;
      &lt;TestElement1   xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;
      &lt;TestElement2   xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;
  &lt;/ns:og&gt;
  &lt;/ns:GetPriceSet&gt;
  &lt;/s:Body&gt;
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>&lt;s:Body     xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;GetPriceSet    xmlns="http://abc.org/01/02"&gt;
  &lt;og&gt;
      &lt;TestElement1   xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;
      &lt;TestElement2   xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;
  &lt;/og&gt;
  &lt;/GetPriceSet&gt;
  &lt;/s:Body&gt;
  </code></pre>
  
  <p>I tried using both XSLTs from here: <a href="https://stackoverflow.com/questions/16810039/how-to-remove-namespace-prefix-leaving-namespace-value-xslt/16810312#16810312">How to remove namespace prefix leaving namespace value (XSLT)?</a></p>
  
  <p>The problem is that the ns: is instead replaced by ns0 and ns1 instead of being removed completely by the XSLTs. So I assume the XSLT needs to be further modified. </p>