这是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>
<div class="blogEntry expecting featured featured-post-today%e2%80%99s-top-story first">
<h2><a href="someurl" rel="bookmark" title="Permanent Link to Rachel Zoe Expecting Second Child">sometitle</a></h2>
</div>
我正在尝试获取锚值。这是我的 XPATH:
$finder->query('//div[@class="blogEntry"]//h2//a');
它没有返回任何价值。知道为什么吗?