阅读背景:

php - xpath问题中的上下文节点

来源:互联网 

have this code:

有这个代码:

$products   =   $feed->_xpath->query( "//cf:vehicle"  );

foreach( $products as $product )
{
    echo $product->nodeName . ': ' . $product->getAttribute('code') . '<br />';
    $imgs   =   $feed->_xpath->query( "//cf:image" , $product );
    echo '&nbsp;Imgs: ' . $imgs->length . '<br />';
}
$products   =   $fee



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: