You are here: simplexml_load_string always FALSE « PHP « IT news, forums, messages
simplexml_load_string always FALSE

Posted by Scott Klarenbach on 11/10/05 20:26

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация