|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-10-14 19:25 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 04:00:01 2025 UTC |
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