#49879 [Com]: ERROR READING A LONG XML

From: Date: Thu, 15 Oct 2009 13:30:58 +0000
Subject: #49879 [Com]: ERROR READING A LONG XML
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143593@lists.php.net to get a copy of this message
ID: 49879 Comment by: phpwnd at gmail dot com 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: Post the XML file somewhere (pastebin for example) otherwise it's really hard to tell, especially if you don't receive an error message. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#143593) next »