I'm trying to parse the xml returned by the YouTube api.
I'm using simplexml_load_file to read in my xml file.
$xml = simplexml_load_file('myxmlfeedhere');
Then I loop through the file and can pull out the contents of some nodes like so:
foreach ($xml->entry as $video) {
$title=$video->title;
echo $title;
}
But I really need to get at some nodes that look like:
<openSearch:totalResults>14</openSearch:totalResults>
How do I get to these nodes? If I reference the node name with the : it breaks my code.
Any ideas for a relative noob?