ID:               37878
 Updated by:       [EMAIL PROTECTED]
 Reported By:      brandenrauch at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         DOM XML related
 Operating System: XP
 PHP Version:      5.1.4
-Assigned To:      
+Assigned To:      rrichards
 New Comment:

Assigned to the maintainer.


Previous Comments:
------------------------------------------------------------------------

[2006-06-21 20:11:06] brandenrauch at gmail dot com

Description:
------------
For my project my data is passing through both xml and xsl. I've chosen
to use decimal (ascII) entities--ex: "--0for input such as quotes
("), singles quotes ('), less thans (<), greater thans(>), and
ampersands (&).

However, when I load my xml into dom it automatically transforms these
characters into either their natural ascII form (specifically quotes),
or an html entity. These transformations are made regardless of the
substituteEntities boolean setting in the DOMDocument object.

Reproduce code:
---------------
$text =
'<xml><text>&#60;tag&#62;</text><text>&#34;quotes&#34;</text></xml>';

$dom = new DOMDocument();
$dom->substituteEntities = false;

$dom->loadXML($text);

echo $dom->saveHTML();

Expected result:
----------------
<xml><text>&#60;tag&#62;</text><text>&#34;quotes&#34;</text></xml>

Actual result:
--------------
<xml><text>&lt;tag&gt;</text><text>"quotes"</text></xml>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37878&edit=1

Reply via email to