title: XPath for child element
body: <p>What is the <strong>Xpath</strong> to select the first element of this jquery selector: <code>$('.A  .B:eq(1)') ?</code></p>
  
  <p>HTML Sample</p>
  
  <pre><code>&lt;div class="x A z"&gt;
    &lt;div class="y"&gt;
      &lt;div class="r B z"&gt;&lt;/div&gt;  &lt;---- that is that I need to select
          &lt;div class="r B z"&gt;&lt;/div
  
  &gt;
  ...
  </code></pre>
  
  <p>So far I've tried this: </p>
  
  <pre><code>(//div[(@class='A') and div[contains(concat(' ', @class, ' '), 'B')]])[1]
  </code></pre>