#38083 [Opn->Asn]: encoding lost when using loadXML
| From: | tony2001@php.net | Date: | Thu, 13 Jul 2006 13:32:15 +0000 |
| Subject: | #38083 [Opn->Asn]: encoding lost when using loadXML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99407@lists.php.net to get a copy of this message | ||
ID: 38083
Updated by: tony2001@php.net
Reported By: john dot enevoldson at pulsen dot se
-Status: Open
+Status: Assigned
Bug Type: DOM XML related
Operating System: SLES 9.3 64 bit
PHP Version: 5.1.4
-Assigned To:
+Assigned To: rrichards
Previous Comments:
------------------------------------------------------------------------
[2006-07-12 17:14:51] john dot enevoldson at pulsen dot se
Description:
------------
Encoding attribute is lost when using loadXML following a create new
DOMDocument.
Reproduce code:
---------------
$doc3 = new DOMDocument('1.0','iso-8859-1');
$doc3->loadXML('<root></root>');
print $doc3->saveXML();
Expected result:
----------------
<?xml version="1.0" encoding="iso-8859-1"?>
<root/>
Actual result:
--------------
<?xml version="1.0"?>
<root/>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38083&edit=1