pass in the $entry node as the context node, the the query is relative to it. $node = $xpath->query("div/img[@class='fooimage']/attribute::src", ...
確定! 回上一頁