title: xpath: element have not specific parent between final
body: <p>I try to select all elements which has attribute name <code>itemprop</code> and whith has any level  parent with attribute <code>itemtype = http://schema.org/Product</code> except elements which located into nodes with  any other  attribute <code>itemtype</code>.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;div itemtype = "http://schema.org/Product" &gt;
    &lt;div itemtype = "http://schema.org/BreadcrumbList" &gt;
      &lt;div itemprop = "name" &gt; A &lt;/div&gt;
      &lt;div itemprop = "price" &gt; B &lt;/div&gt;
      &lt;div itemtype = "http://schema.org/ListItem" &gt;
        &lt;div itemprop = "description"&gt; C &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div itemprop = "name" &gt; D &lt;/div&gt;
    &lt;div&gt;
      &lt;div&gt;
        &lt;div itemprop = "price" &gt; E &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need only D and E elements but not A, B, C.
  I tried somerhing like this:</p>
  
  <pre><code>//*[normalize-space(@itemtype) = 'http://schema.org/Product']/descendant::*[not(descendant-or-self::*[@itemtype])][@itemprop]
  </code></pre>
  
  <p>This string not valid at all and other my attempts did not exclude A, B and C elements.</p>