Answer the question
In order to leave comments, you need to log in
How to get from DOM all nodes with attr attribute starting with 'begin...'?
Hello!
SUBJECT.
You need to get, using xPath, from the DOM all nodes with the clName class and the attr attribute starting with 'begin...'
<tag class="clName" attr="begin1">...</tag>
<tag class="clName" attr="begin2">...</tag>
<tag class="clName" attr="begin3">...</tag>
//a[@class='card-image-view__clickable' and starts-with(@href, 'https://zen.yandex.ru')]
a.card-image-view__clickable[href^='https://zen.yandex.ru']
finds 5 of them.//tag[@class='clName']/@attr[starts-with(name(.), 'begin')]
//tag[@class='clName' and starts-with(@attr, 'begin')]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question