RE: [PHP] XML Parser doesn't work when moved....

From: Date: Wed, 10 Nov 2004 17:23:48 +0000
Subject: RE: [PHP] XML Parser doesn't work when moved....
Groups: php.general 
Request: Send a blank email to php-general+get-201705@lists.php.net to get a copy of this message
[snip] /* let's parse! */ if($readXML = fopen(XMLDIR."testRecp.xml", "r")){ while($lineXML = fread($readXML, 4096)){ //echo $lineXML . "<br>\n"; xml_parse($covadParser, $lineXML, feof($readXML)); } } else { echo "COULD NOT READ XML FILE\n"; } /* clear the parser */ xml_parser_free($covadParser); [/snip] Having added the following line echo "XML Error " . xml_error_string(xml_get_error_code($covadParser)) . "<br>\n"; just after the xml_parse PHP is reporting "not well-formed (invalid token)" so I will have to explore. Seems that one server is not as strict as the other. Is there a way to reduced strictness of xml validation?

« previous php.general (#201705) next »