note 79935 deleted from function.dom-domdocument-construct by felipe
| From: | felipe@php.net | Date: | Mon, 24 Dec 2007 01:11:19 +0000 |
| Subject: | note 79935 deleted from function.dom-domdocument-construct by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133911@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
For very newbies: if you run below example from manual, you may see a completely white page.
<?php
$dom = new DOMDocument('1.0', 'iso-8859-1');
echo $dom->saveXML(); /* <?xml version="1.0" encoding="iso-8859-1"?> */
?>
it should be:
echo htmlentities($dom->saveXML());
I am using PHP 5 on Windows+Apache2, and no need for php_domxml.php (it is needed for PHP 4 only,
you know).