simplexml_load_string always FALSE

From: Date: Thu, 10 Nov 2005 18:26:34 +0000
Subject: simplexml_load_string always FALSE
Groups: php.general 
Request: Send a blank email to php-general+get-225531@lists.php.net to get a copy of this message
I have a call $oXML = simplexml_load_string($xmlString); I then check it, with if(!$oXML) throw new XMLException(); For some reason, it's always evaluating to FALSE. Even though there are no errors and the rest of the xml parsing works fine. If I change it to if($oXML === FALSE) throw new XMLException(); then it works fine. Is it evaluating a valid xml object as 0? I wonder if anyone can enlighten me. Thanks, Scott Klarenbach

« previous php.general (#225531) next »