note 94445 modified in domnode.removechild by danbrown
| From: | danbrown@php.net | Date: | Thu, 05 Nov 2009 19:51:53 +0000 |
| Subject: | note 94445 modified in domnode.removechild by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162423@lists.php.net to get a copy of this message | ||
Just a note, if you remove a node the whitespace it occupied will remain if you save the file.
To avoid this, use $document->preserveWhiteSpace = false;
For Example:
<?php
$document = new DomDocument();
$document->preserveWhiteSpace = false;
?>
--was--
Just a note, if you remove a node the whitespace it occupied will remain if you save the file.
To avoid this, use $document->preserveWhiteSpace = false;
For Example:
$document = new DomDocument();
$document->preserveWhiteSpace = false;
http://php.net/manual/en/domnode.removechild.php