XPath zum Auswählen von Elementen zwischen Elementen basierend auf dem Inhalt?

Wenn Sie den folgenden HTML-Code angeben, wählt XPath alle aus.a Elemente zwischen denen mitMac / Macbooks Ankertext und der mitMore Anker-Text

<dd> 
  <ol> 
    <li> 
      <a href="http://www.shophive.com/apple?cat=9">DO NOT WANT 1</a> (164)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=10">Mac / Macbooks</a> (165)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=18">iPhone</a> (459)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=20">iPad</a> (221)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=486">Watch</a> (129)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=16">iPod</a> (85)
    </li>  
    <li> 
      <a href="http://www.shophive.com/apple?cat=574">More</a> (69)
    </li> 
    <li> 
      <a href="http://www.shophive.com/apple?cat=575">DO NOT WANT 2</a> (70)
    </li>  
  </ol> 
</dd>

Antworten auf die Frage(4)

Ihre Antwort auf die Frage