Thanks for the reply, but the solution needs to be in PHP, not
JavaScript.
-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 03, 2007 3:20 PM
To: php-general@lists.php.net
Subject: [PHP] Re: How can I DomDocument-renameNode?
I have tried making a new node
Create a copy manually and then rename the node.
--
itoctopus - http://www.itoctopus.com
Eric Wiener [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Apparently renameNode is not yet implemented into Dom, so how can I
rename a node without affecting its value and/or child nodes?
I
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.
You might try something like this:
function replaceNode() {
3 matches
Mail list logo