#27581 [Fbk->Bgs]: XML Dom html_dump_mem

From: Date: Sun, 14 Mar 2004 10:12:41 +0000
Subject: #27581 [Fbk->Bgs]: XML Dom html_dump_mem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56416@lists.php.net to get a copy of this message
ID: 27581 Updated by: chregu@php.net Reported By: angel at ciudad dot com dot ar -Status: Feedback +Status: Bogus Bug Type: DOM XML related Operating System: Linux PHP Version: 4.3.4 New Comment: why are you using html_dump_mem(), when it's clearly not an HTML document... use dump_mem() and everything works fine... Previous Comments: ------------------------------------------------------------------------ [2004-03-13 05:03:17] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-03-12 15:22:13] angel at ciudad dot com dot ar Description: ------------ This doesn't dump entery xml, just the first 3 nodes. Reproduce code: --------------- <? $xml_verificado = domxml_new_doc("1.0"); $xml_verificado_methodCall = $xml_verificado->create_element("methodCall"); $xml_verificado_methodCall = $xml_verificado->append_child($xml_verificado_methodCall); $xml_verificado_methodName = $xml_verificado->create_element("methodName"); $xml_verificado_methodName = $xml_verificado_methodCall->append_child($xml_verificado_methodName); $xml_verificado_methodName_method = $xml_verificado->create_text_node("sys.get_usuario"); $xml_verificado_methodName_method = $xml_verificado_methodName->append_child($xml_verificado_methodName_method); $xml_verificado_params = $xml_verificado->create_element("params"); $xml_verificado_params = $xml_verificado_methodCall->append_child($xml_verificado_params); $xml_verificado_params_param = $xml_verificado->create_element("param"); $xml_verificado_params_param = $xml_verificado_params->append_child($xml_verificado_params_param); $xml_verificado_params_param_string = $xml_verificado->create_element("string"); $xml_verificado_params_param_string = $xml_verificado_params_param->append_child($xml_verificado_params_param_string); echo $xml_verificado->html_dump_mem(); ?> Expected result: ---------------- <methodCall><methodName>sys.get_usuario</methodName><params><param><value><string></string></value></params></methodCall> Actual result: -------------- <methodCall><methodName>sys.get_usuario</methodName><params><param></params></methodCall> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27581&edit=1

« previous php.bugs (#56416) next »