I want to ask a question:
The structure is similar:
<div class='item'> <div class='all'> BY <p>ABC</p> <p>DEF</p> <p> <span class="date">19991111</span> </p> </div> </div>
I want to ask how to select all text() (BY ABC DEF), but does not contain <span class="date">DDD</span> (19991111)
I found the not() method span[not(@class, 'date')
but I donβt know how to combine with //div[@class=item]/div[@class='all']//text()
Please Teach Me Thank You
source share