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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: angel at ciudad dot com dot ar
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC