Xpath query not working
Here is the HTML:
<div class="blogEntry expecting featured
featured-post-today%e2%80%99s-top-story first">
<h2><a href="/2013/09/03/rachel-zoe-pregnant-expecting-second-child/"
rel="bookmark" title="Permanent Link to Rachel Zoe Expecting
Second Child">Rachel Zoe Expecting Second Child</a></h2>
</div>
I'm trying to get the anchor value. Here is my XPATH:
$finder->query('//div[@class="blogEntry"]//h2//a');
It's returning no value. Any idea why?
No comments:
Post a Comment