PHP анализирует пространство имен georss с помощью simpleXML

Попытка разобрать широту/долготу из RSS-канала Google Maps:

$file = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=327b&msa=0&output=georss&msid=217909142388190116501.000473ca1b7eb5750ebfe";
$xml = simplexml_load_file($file);    
$loc = $xml->channel->item;
echo $loc[0]->title;
echo $loc[0]->point;

Название отображается хорошо, но точка мне ничего не дает. Каждый узел выглядит так:

<item> 
    <guid isPermaLink="false">0004740950fd067393eb4</guid> 
    <pubDate>Sun, 20 Sep 2009 21:47:49 +0000</pubDate> 
    <title>Big Wong King Restaurant</title> 
    <description><![CDATA[<div dir="ltr">$4.99 full meals!</div>]]></description> 
    <author>neufuture</author> 
    <georss:point> 
      40.716236 -73.998413
    </georss:point> 
    <georss:elev>0.000000</georss:elev> 
  </item>

person neufuture    schedule 01.04.2011    source источник


Ответы (1)


person    schedule
comment
Ссылка на статью Zend не работает - person Nate; 10.07.2013