note 96877 added to simplexmlelement.getDocNamespaces
| From: | damian at damianhall dot net | Date: | Sat, 20 Mar 2010 16:52:43 +0000 |
| Subject: | note 96877 added to simplexmlelement.getDocNamespaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167253@lists.php.net to get a copy of this message | ||
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']);
?>
----
Server IP: 64.71.164.2
Probable Submitter: 98.26.17.142
----
Manual Page -- http://www.php.net/manual/en/simplexmlelement.getDocNamespaces.php
Edit -- https://master.php.net/note/edit/96877
Del: integrated -- https://master.php.net/note/delete/96877/integrated
Del: useless -- https://master.php.net/note/delete/96877/useless
Del: bad code -- https://master.php.net/note/delete/96877/bad+code
Del: spam -- https://master.php.net/note/delete/96877/spam
Del: non-english -- https://master.php.net/note/delete/96877/non-english
Del: in docs -- https://master.php.net/note/delete/96877/in+docs
Del: other reasons-- https://master.php.net/note/delete/96877
Reject -- https://master.php.net/note/reject/96877
Search -- https://master.php.net/manage/user-notes.php