Hi,
I have a problem with both DOM and SimpleXML. I'm reading an XML file
which has a DOCTYPE declaration using a public identifier and an URL.
the XML file contains some entities (defined in the DTD but
apparently libxml is not trying to fetch the URL).
Both DOM and SimpleXML fill my window with warnings like:
Warning: DOMDocument::lo ad() [function.load]: Entity 'nbsp' not defined
in /usr/local/apache2/htdocs/livres/2841771172.xml, line: 79 in
/usr/local/apache2/htdocs/catalogue.php on line 67
although in the PHP file I have set all relevant properties to false:
$livre = new domDocument;
$livre->strictErrorChe cking=false;
$livre->resolveExterna ls=false;
$livre->substituteEnti ties=false;
if (file_exists("l ivres/".$ref.".xm l")) {
$livre->load("livres/".$ref.".xm l");
$titre=$livre->getElementsByT agName("titre")->item(0)->firstChild->nodeV
alue;
HOW CAN I AVOID those warnings??? [I'm close to a nervous breakdown]
TIA
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----