Hi all,
Could someone please help me out with this.
I need to find the gml:pos namespace in the xml.
But, very important! - in the $item part off the loop
I really have no clue how to get this done.
The namespace is in another custom namespace according to google-api docs.
$feed = simplexml_load_string($feedXml);
foreach ($feed->entry as $item) {
//do stuff
$i++;
}
EDIT I only found this to work.
$namespace = $feed->getDocNamespaces();
$ns_gml=$item->children($namespace['georss'])->children($namespace['gml']);
thanks in adv, Rich