ID: 47137 Updated by: rricha...@php.net Reported By: romain dot lalaut at laposte dot net -Status: Open +Status: Bogus Bug Type: XML related Operating System: Linux PHP Version: 5.3.0alpha3 New Comment:
That is a save option which hasn't yet been implemented so has never worked Previous Comments: ------------------------------------------------------------------------ [2009-01-17 13:58:07] romain dot lalaut at laposte dot net Description: ------------ It seems that saving a DOMDocument which is loaded with LIBXML_NOXMLDECL doesn't avoid to get the xml declaration. It is a big problem to produce a xhtml document for internet because IE6 is not dead yet. Tested with libxml2 2.6.32 and 2.7.2 Reproduce code: --------------- <?php $xml = '<myxml/>'; $doc = new DOMDocument(); $doc->loadXml($xml, LIBXML_NOXMLDECL); echo $doc->saveXML(); Expected result: ---------------- <myxml/> Actual result: -------------- <?xml version="1.0"?> <myxml/> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47137&edit=1