我想使用xpath 1.0提取以下内容的li项,并在不换行的情况下将其输出到一行。
这是我尝试过的
// * [@ id =“ shows”] / div / ol [2] / li / ol / li / a / text()
<ol class="shows">
<li>
<strong>THEATRE by Rhodes</strong>
<ol>
<li data-id="0031-45076">
<a class="action showtime" href="/booking/0031-45076">2:30pm </a>
</li>
<li data-id="0031-45077">
<a class="action showtime" href="/booking/0031-45077">5:30pm </a>
</li>
<li data-id="0031-45079">
<a class="action showtime" href="/booking/0031-45079">11:15pm </a>
</li>
</ol>
</li>
<li>
<strong>Standard</strong>
<ol>
<li data-id="0031-44928">
<a class="action showtime" href="/booking/0031-44928">11:00am </a>
</li>
<li data-id="0031-44929">
<a class="action showtime" href="/booking/0031-44929">1:30pm </a>
</li>
<li data-id="0031-44930">
<a class="action showtime" href="/booking/0031-44930">4:00pm </a>
</li>
<li data-id="0031-44931">
<a class="action showtime" href="/booking/0031-44931">6:30pm </a>
</li>
<li data-id="0031-44932">
<a class="action showtime" href="/booking/0031-44932">9:00pm </a>
</li>
<li data-id="0031-44933">
<a class="action showtime" href="/booking/0031-44933">11:30pm </a>
</li>
</ol>
</li>
</ol>