title: xpath: skip child node with an given id
body: <p>I have to configure our enterprise search engine and the indexing of documents is done via xpath selectors.
  In the current setup there is an xpath</p>
  
  <pre><code>.//div[@id='content']
  </code></pre>
  
  <p>Which selects basically all elements of the main part of a website. Meanwhile there is an additional div with a lot of nonsense included, so I tried to modify this xpath to skip this div-tag. I am struggling with the documentation regarding "not" but withou any luck so far.</p>
  
  <pre><code>&lt;div id="content"&gt;
    &lt;div id="i-want-this"&gt;
     ...
    &lt;/div&gt;
    &lt;div id="i-do-not-want-this"&gt;
     &lt;span&gt;foo&lt;/span&gt;
    &lt;/div&gt;
    &lt;div id="i-want-this-too"&gt;
     ...
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>While I see that the hints in the comments helped me so far, I still have an issue with child elements in the div-tag I want to skip. Let's say, there is a span-tag inside. If I select</p>
  
  <p>//div[@id='content']/*[not(@id='i-do-not-want-this')]
  my result still includes this span-content. So I guess, I need a query for all elements below id="content" which do not have a parent id="i-do-not-want-this". Right?</p>