How can I DomDocument->renameNode?
| From: | Eric Wiener | Date: | Fri, 01 Jun 2007 17:55:21 +0000 |
| Subject: | How can I DomDocument->renameNode? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-255977@lists.php.net to get a copy of this message | ||
Apparently renameNode is not yet implemented into Dom, so how can I
rename a node without affecting its value and/or child nodes?
I have tried making a new node, inserting it before the old node then
removing the old node but I could not figure out how to get the
nodeValue to include the child nodes, so they get stripped out leaving
only the text value.