note 51593 added to function.dom-domdocument-construct

From: Date: Tue, 05 Apr 2005 11:59:19 +0000
Subject: note 51593 added to function.dom-domdocument-construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-87487@lists.php.net to get a copy of this message
with this code: <?php $dom = new DOMDocument("1.0", "iso-8859-1"); echo $dom->saveXML(); ?> I take a following errors: Warning: domdocument() expects parameter 2 to be long, string given in C:\apache\htdocs\tcm_xml\test3.php on line 3 Fatal error: Call to undefined function: savexml() in C:\apache\htdocs\tcm_xml\test3.php on line 4 What am I doing wrong? ---- Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-construct.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51593 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51593&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51593&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51593&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51593&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51593&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51593&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87487) next »