Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
Re: How can I DomDocument->renameNode?
Old
  (#1)
itoctopus
Guest
 
Posts: n/a
Default Re: How can I DomDocument->renameNode? - 06-04-2007, 01:37 AM

Create a copy manually and then rename the node.

--
itoctopus - http://www.itoctopus.com
""Eric Wiener"" <EMAIL REMOVED> wrote in message
news0EE299B3057664DBA3D11BA74F994BD057BBD@cba0e2 k12.CBA0.centerbeam.com...
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.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us - Forum Care Forums - Archive - Top