note 73456 deleted from domnode.removechild by felipe
| From: | felipe@php.net | Date: | Tue, 22 Jul 2008 02:13:25 +0000 |
| Subject: | note 73456 deleted from domnode.removechild by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142454@lists.php.net to get a copy of this message | ||
Note Submitter:
----
If you want to remove all nodes of a given type, this might be an idea:
while($elem = $dom->getElementsByTagName("name")->item(0)) {
$dom->removeChild($elem);
}
probably not the most efficient way, but it works