ID:          31873
 Updated by:  [EMAIL PROTECTED]
 Reported By: becicka at aarongroup dot cz
-Status:      Open
+Status:      Feedback
 Bug Type:    *XML functions
 PHP Version: 5.0.3
 New Comment:

Works fine on my machine, as it returns:

<?xml version="1.0"?>
<a><B><C/></B></a>

What version of libxml2 are you using? 2.6.x? Something earlier?


Previous Comments:
------------------------------------------------------------------------

[2005-02-07 18:44:38] becicka at aarongroup dot cz

Description:
------------
$dom->saveXML() return:
<?xml version="1.0"?>
<a><B><C/>    
    </B></a>

instead of: 
<?xml version="1.0"?><a><B><C/></B></a>



Reproduce code:
---------------
$dom = new DOMDocument;
$dom->preserveWhiteSpace = false;

$def = '
<a>
    <B>
        <C/>    
    </B>
</a>';
$dom->loadXML($def);
echo "<pre>";
echo htmlentities($dom->saveXML());
echo "</pre>";

Expected result:
----------------
$dom->saveXML() should return
<?xml version="1.0"?><a><B><C/></B></a>


Actual result:
--------------
<?xml version="1.0"?>
<a><B><C/>    
    </B></a>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31873&edit=1

Reply via email to