title: How to exclude elements from xpath result
body: <p>Hi I know this is quite basic but I wasn't able to find the answer by myself.</p>
  
  <p>In this example:</p>
  
  <pre><code>&lt;root&gt;
     &lt;a/&gt;
     &lt;b/&gt;
     &lt;c/&gt;
     &lt;d/&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I want to select all <code>root</code> children except <code>b</code> and <code>d</code>.</p>
  
  <p>I wrote something like this that didn't work.</p>
  
  <pre><code>/root/*[not(b) and not(d)]
  </code></pre>
  
  <p>the result is all the root children: <code>a,b,c,d</code>.
  How to select only <code>a</code> and <code>c</code>?</p>