http://feeds.feedburner.com/rb286には、たくさんの画像があります。ただし、simplXmlElement を使用して xml オブジェクトに変換すると、画像が表示されません。私のコード:
if (function_exists("curl_init")){
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,"http://feeds.feedburner.com/rb286");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$data=curl_exec($ch);
curl_close($ch);
//print_r($data); //here i'm able to see the images
$doc=new SimpleXmlElement($data);
print_r($doc); //here i'm not able to see the images
}
誰かが xml オブジェクトに変換した後に画像にアクセスする方法を教えてもらえますか? ありがとうございました。