解析XML文件

I am trying to parse the external xml file using this code with php and simplexml_load_file(); the problem it shows $xml->title as empty, it doesn't have any value, althoug the XML file is loaded,

you can see it in this link http://abone.doganburda.com/test/indexNew.php

<?
    $file = 'http://doganburda.com.tr/Files/sonhaber.xml';
    if(!$xml = simplexml_load_file($file))
        exit('Failed to open '.$file);

    $description = $xml2;
    echo "Title: " .$xml->title. "<br />" .
        "Description: " .$xml->description. "<br />"         
?>

You are accessing them wrongly..

It should be

echo $xml->channel->item->title;
echo $xml->channel->item->description;

Working Demo

Use this code

echo $xml->channel->item->title;