title: Xpath to select between tags
body: <p>This question may be asked here, I searched for hours but not able to figure out how to select between the nodes.</p>
  <p>I am a novice in XPath selection, I am trying to select all the li under specific h6, the challenge here is the all the h6 have the same class attributes so not able to identify the unique identifier, when I type <code>//h6/ui/li/span</code> it gets all li in the document under all the h6.</p>
  <pre><code>&lt;h6&gt; Text1 &lt;/h6&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;span&gt; list1 &lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span&gt; list2 &lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span&gt; list3 &lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;div&gt; &lt;/div&gt;
  &lt;h6&gt; Text 2&lt;/h6&gt;
  </code></pre>
  <p>Not sure how to proceed, first time I am writing a question here, let me know if more information is required.</p>
  <p>Any help appreciated</p>