|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-18 19:59 UTC] rrichards@php.net
-Status: Open
+Status: Feedback
[2011-02-18 19:59 UTC] rrichards@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Description: ------------ import of nodes named as "link" kills trailing-slashs/-tags? Test script: --------------- $xml = new DOMDocument; $xml_dir = $xml->createElement("item"); $pagedoc = new DOMDocument; $pagedoc->load($broadcaster.'test.xml'); $xml_page = $xml->createElement("page"); $xml_page = $xml->importNode($pagedoc->documentElement, true); $xml_dir->appendChild($xml_page); $xml->appendChild($xml_dir); ## file 1 <root> <subs> <route dispatch="root:abc" /> <route disptach="root:def">def</route> </subs> </root> #### file 2 <root> <subs> <link dispatch="root:abc" /> <link disptach="root:def">def</link> </subs> </root> Expected result: ---------------- ## -> file 1 <mainstage> <item> <root> <subs> <route dispatch="root:abc"/> <route disptach="root:def">def</route> </subs> </root> </item> </mainstage> ## -> file 2 <mainstage> <item> <root> <subs> <link dispatch="root:abc"/> <link disptach="root:def">def</link> </subs> </root> </item> </mainstage> Actual result: -------------- ## -> file 1 <mainstage> <item> <root> <subs> <route dispatch="root:abc"/> <route disptach="root:def">def</route> </subs> </root> </item> </mainstage> ## -> file 2 <mainstage> <item> <root> <subs> <link dispatch="root:abc"> <link disptach="root:def"> </subs> </root> </item> </mainstage>