note 96877 deleted from simplexmlelement.getDocNamespaces by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Jan 2011 14:35:01 +0000 |
| Subject: | note 96877 deleted from simplexmlelement.getDocNamespaces by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176474@lists.php.net to get a copy of this message | ||
Note Submitter: damian at damianhall dot net
----
I had a similar issue with google's picasa and attempting to pull the thumbnail out of the rss.
Just a heads up that if the attribute you are looking for is a grandchild of the element
you'll have to use the children() function twice.
<?php
$namespaces = $item->getNameSpaces(true);
$mediarss = $item->children($namespaces['media']);
$mediagroup = $mediarss->group->children($namespaces['media']);
?>