My goal is to extract all images enclosed in href attributes from the given code snippet
<div class="jcarousel product-imagethumb-alt" data-jcarousel="true">
<ul>
<li>
<a href="https://domain/imagefull.jpg" onclick="return false;" class="cboxElement">
<img itemprop="image" src="http://domain/imagethumb.jpg"></a>
</li>
</ul>
</div>
I attempted to retrieve them using XPath expressions like div/ul/li//a[img]/@href
and
div/ul/li//a[@class="cboxElement"]/@href
as well as div/ul/li//a/@href
, but none of them captured any images within the href attribute.
If anyone could provide me with the most effective XPath expression to fetch the images nested inside href, I would greatly appreciate it.
Thank you.