|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-12-18 03:11 UTC] sniper@php.net
[2003-12-22 08:18 UTC] msw at seebi dot de
[2003-12-22 08:44 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 00:00:01 2025 UTC |
Description: ------------ When I'm producing a new xml file (domxml_new_doc()) which contains some decimal entities (e.g. for the german characters ß Ä ö and so on) and saving this file to disk (dump_file()) each character '&' in each decimal entity is converted into &. This appears with PHP 4.3.0 and 4.3.4 (Win). PHP 4.3.1, 4.3.2 and 4.3.3 not tested. Reproduce code: --------------- <?php $content="ß - Ä"; $dom = domxml_new_doc("1.0"); $root = $dom->add_root("list"); $ab=$dom->create_element("absatz"); $ab->set_attribute("id","10"); $text=$dom->create_element("text"); $content=$dom->create_text_node($content); $text->append_child($content); $ab->append_child($text); $root->append_child($ab); $dom->dump_file("test.xml", false, false); ?> Expected result: ---------------- the file test.xml should look like this: <?xml version="1.0"?> <list><absatz id="10"><text>ß -Ä</text></absatz></list> Actual result: -------------- The actual result is: <?xml version="1.0"?> <list><absatz id="10"><text>&#223; -&#196;</text></absatz></list>