title: XPath searching multiple nested elements
body: <p>I have the following html document</p>
  
  <pre><code>&lt;div class="books"&gt;
    &lt;div class="book"&gt;
      &lt;div&gt;
        there are many deep nested elements here, somewhere there will be one span with  some text e.g. 'mybooktext' within these
        &lt;div&gt;
          &lt;div&gt;
            &lt;div&gt;
              &lt;span&gt;mybooktext&lt;/span&gt;
            &lt;/div&gt;
         &lt;/div&gt;
       &lt;/div&gt;
    &lt;/div&gt;
  &lt;div&gt;
   there are also many nested elements here, somewhere there will be a link with a class called 'mylinkclass' within these. (this is the element i want to find)
   &lt;div&gt;
     &lt;div&gt;
       &lt;a class="mylinkclass"&gt;Bla&lt;/a&gt;
     &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="book"&gt;
  &lt;div&gt;
   there are many deep nested elements here, somewhere there will be one span with some     text e.g. 'mybooktext' within these
     &lt;div&gt;
       &lt;span&gt;mybooktext&lt;/span&gt;
     &lt;/div&gt;
   &lt;div&gt;
  &lt;/div&gt;
  &lt;div&gt;
   there are also many nested elements here, somewhere there will be a link with a class called 'mylinkclass' within these. (this is the element i want to find)
   &lt;div&gt;
     &lt;a class="mylinkclass"&gt;Bla&lt;/a&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="book"&gt;
  same as above
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to find the link element (link has class called 'mylinkclass') within the book element, this will be based on the text of the span within the same book element.</p>
  
  <p>So it would be something like: </p>
  
  <ol>
  <li><p>-Find span with text 'mybooktext'</p></li>
  <li><p>-Navigate up Book div</p></li>
  <li><p>-Find link with class 'mylinkclass' within book div</p></li>
  </ol>
  
  <p>This should be done using one xpath statement</p>