title: How to write a xpath to match all elements except a particular element
body: <p>I am writing an XSL transformation. I want to write a template which matches all the child elements of the document except one particular node. My xml looks like this - </p>
  
  <pre><code>&lt;Document&gt;
      &lt;NodeA&gt;&lt;/NodeA&gt;
  
      &lt;NodeB&gt;&lt;/NodeB&gt;
  
      &lt;ServiceNode&gt;&lt;/ServiceNode&gt;
  
      &lt;NodeX&gt;&lt;/NodeX&gt;
  &lt;/Document&gt;
  </code></pre>
  
  <p>I want to write a template that matches all nodes except <code>ServiceNode</code> i.e. <code>NodeA</code> to <code>NodeX</code>. How to write this Xpath to get -</p>
  
  <pre><code>&lt;xsl:template match="ALL Nodex Except ServiceNode"&gt;
  </code></pre>