I'm trying to use XPath 1.0 to select all of the text within these li
elements, except for the last one with class="detailCrumb"
.
I'd like my result to look like:
Home Photography Memory Cards & Accessories Memory Cards
These breadcrumbs will be dynamic based on the level of the site I'm at, so I can't specify positional requests, such as li[4]
. How can I achieve this?
<div class="breadcrums-cont">
<ul id="breadcrumbs" ">
<li class="first">Home</li>
<li>Photography</li>
<li>Memory Cards & Accessories</li>
<li>Memory Cards</li>
<li class="detailCrumb">SanDisk Extreme Pro</li>
</ul>
</div>