SimpleXMLElement Object
 (
        [@attributes] => Array
            (
                [projectTypeID] => 10
                [genContentID] => 000001
                [language] => en
                [title] => Travel to developing countries
                [subContent] => default
            )
        [versionInfo] => SimpleXMLElement Object
            (
                [@attributes] => Array
                    (
                        [reviewDate] => 2/20/2012
                        [reviewedBy] => Harvey Simon
                    )
            )
     ) 
How can I get the value of @attributes element?
   [title] => Travel to developing countries
   [reviewDate] => 2/20/2012
this is my code
  <?php   $xml = simplexml_load_file('000001.xml','SimpleXMLElement', LIBXML_NOCDATA);
          echo "<pre>";
           print_r($xml);
          echo "</pre>";
             echo $xml->{'@attributes'}['title'];  // not working
        echo "<br/>";
       echo $xml->versionInfo->{'@attributes'}['reviewDate'];   // not working
   ?>
 
     
     
    