Re: How can I DomDocument->renameNode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Create a copy manually and then rename the node.

-- 
itoctopus - http://www.itoctopus.com
""Eric Wiener"" <ewiener@xxxxxxxxxxxxxx> wrote in message 
news:D0EE299B3057664DBA3D11BA74F994BD057BBD@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux