"Trying to get property of non-object" error with SimpleXML and PHP
- by SooDesuNe
I'm using a PHP script with SimpleXML to parse an XML feed. I have no control over the content of the XML.
try { $xml = @new SimpleXMLElement($fetchResult); } catch (Exception $e) { errorHandle($e->getMessage());}
$userNick =…