#29386 [Opn->Fbk]: unexpected result - $dom->saveXML()

From: Date: Mon, 26 Jul 2004 10:23:47 +0000
Subject: #29386 [Opn->Fbk]: unexpected result - $dom->saveXML()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63545@lists.php.net to get a copy of this message
ID: 29386 Updated by: chregu@php.net Reported By: bugz at nagash dot org -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: windows PHP Version: 5.0.0 New Comment: Works for me on Linux... Can someone revalidate that on windows? Previous Comments: ------------------------------------------------------------------------ [2004-07-26 12:06:59] bugz at nagash dot org Description: ------------ result is unexpected Reproduce code: --------------- $doc = new DOMDocument("1.0"); $root = $doc->createElement("HTML"); $root = $doc->appendChild($root); $head = $doc->createElement("HEAD"); $head = $root->appendChild($head); $title = $doc->createElement("TITLE"); $title = $head->appendChild($title); $text = $doc->createTextNode("This is the title"); $text = $title->appendChild($text); echo $doc->saveXML(); Expected result: ---------------- <?xml version="1.0"?> <HTML> <HEAD> <TITLE> This is the title </TITLE> </HEAD> </HTML> Actual result: -------------- <?xml version="1.0"?> <HTML /> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29386&edit=1

« previous php.bugs (#63545) next »