ID: 49879 User updated by: bbarnett at gt dot co dot cr Reported By: bbarnett at gt dot co dot cr Status: Open Bug Type: SimpleXML related Operating System: WServer 2K3 PHP Version: 5.2.11 New Comment:
You can download the xml file from: https://201.199.26.154/xml/ins-estilos.txt Thanks for your help Previous Comments: ------------------------------------------------------------------------ [2009-10-15 14:08:48] bbarnett at gt dot co dot cr I found a PHP script to view the xml error: <? $xml2= simplexml_load_string($xmlestilos); if (!$xml2 ){ $errors = libxml_get_errors(); foreach ($errors as $error) { echo display_xml_error($error, $xml2).'<br>'; } libxml_clear_errors(); } ?> The error is: Fatal Error 9: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA0 0x50 0x52 0x4F Line: 92244 Column: 24 ------------------------------------------------------------------------ [2009-10-15 13:30:55] phpwnd at gmail dot com Post the XML file somewhere (pastebin for example) otherwise it's really hard to tell, especially if you don't receive an error message. ------------------------------------------------------------------------ [2009-10-14 19:25:53] bbarnett at gt dot co dot cr Description: ------------ I have a long XML that I recieve from another system, but this XML has more than 30000 records (tag), and when I try to read it PHP can't do it. If you need the XML data, I can send it to the e-mail that you send me. Reproduce code: --------------- $xml= simplexml_load_string(utf8_decode(trim($xmlrecieved))); if (!$xml ){ print 'MSG-20: Se detecto una respuesta invalida del INS '; die(); } Expected result: ---------------- I need to process the data in the XML to update a database table. Actual result: -------------- PHP can't read it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49879&edit=1
