title: Remove xml tag on a sub node
body: <p>I have an xml from one of our 'legacy' systems. I want to remove the ExtLineNum tag but it's not located in the root.</p>
  
  <p>I have stripped the xml for my example:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;ns0:Envelope xmlns:ns0="http://schemas.microsoft.com/dynamics/2008/01/documents/Message"&gt;&lt;ns0:Header&gt;&lt;ns0:MessageId&gt;{F2BCADA1-AC26-4A0C-BA44-11D75E249150}&lt;/ns0:MessageId&gt;&lt;ns0:SourceEndpointUser&gt;du.msad\btshostinstance&lt;/ns0:SourceEndpointUser&gt;&lt;ns0:SourceEndpoint&gt;EDI&lt;/ns0:SourceEndpoint&gt;&lt;ns0:DestinationEndpoint&gt;JWR&lt;/ns0:DestinationEndpoint&gt;&lt;ns0:Action&gt;http://schemas.microsoft.com/dynamics/2008/01/services/SalesOrderService/create&lt;/ns0:Action&gt;&lt;ns0:ConversationId /&gt;&lt;ns0:RequestMessageId /&gt;&lt;/ns0:Header&gt;&lt;ns0:Body&gt;&lt;ns0:MessageParts&gt;&lt;SalesOrder xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;SalesTable class="entity"&gt;
      &lt;ActionCode&gt;&lt;/ActionCode&gt;
      &lt;SalesLine class="entity"&gt;
        &lt;ExtLineNum&gt;&lt;/ExtLineNum&gt;
      &lt;/SalesLine&gt;
    &lt;/SalesTable&gt;
  &lt;/SalesOrder&gt;&lt;/ns0:MessageParts&gt;&lt;/ns0:Body&gt;&lt;/ns0:Envelope&gt;
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
   &lt;xsl:output omit-xml-declaration="yes" indent="yes"/&gt;
  
   &lt;xsl:template match="node()|@*"&gt;
    &lt;xsl:copy&gt;
     &lt;xsl:apply-templates select="node()|@*"/&gt;
    &lt;/xsl:copy&gt;
   &lt;/xsl:template&gt;
  
   &lt;xsl:template match="ExtLineNum"/&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>But that didn't work out..
  Guess it's a simple question but I can't find the answer?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Mike</p>