simplexml_load_string always FALSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux