Re: Simple XML - problem with errors

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

 



Marc Guay writes:
>> libxml_use_internal_errors(true);
>> $this->xml = new SimpleXMLElement($this->htmlString);

> I have code that looks like this:
>
> libxml_use_internal_errors(true);
> $xml = simplexml_load_string($val);

Yeah. I tried simplexml_load_string and found that "worked" (in that it
didn't cause an exception - there are errors which caused the conversion
not to work). I wonder what the difference is between doing "new
SimpleXMLElement" and calling simplexml_load_string which results in the
libxml_use_internal_errors call being ineffective. Odd.

-- 
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