php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27581 XML Dom html_dump_mem
Submitted: 2004-03-12 15:22 UTC Modified: 2004-03-14 05:12 UTC
From: angel at ciudad dot com dot ar Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.4 OS: Linux
Private report: No CVE-ID: None
 [2004-03-12 15:22 UTC] 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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-14 05:12 UTC] chregu@php.net
why are you using html_dump_mem(), when it's clearly not 
an HTML document... use dump_mem() and everything works 
fine...
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 12:01:23 2020 UTC