I'm trying to echo the XML content at this URL but I'm having difficulty. Here's what I have so far:
$url = "GetVideosServlet?queryId=1";
$xml = simplexml_load_file($url);
$value = (string) $xml->results->item[0]->id;
echo $value;
I keep getting the error that I'm trying to get the property of a non-object. But I was under the impression simplexml_load_file converts my XML string INTO an object??
If anyone could show me how to echo out any of the content, I'd be very grateful.
$xmldidn't get turned into an object. If it'sfalse, it didn't work.