I need to replace a couple of nodes that contain childnodes etc with just a text node. Does anybody know a quick way of doing this?
Is the best way to create a node with the same name etc but just with the text node that I want to insert and the use the replaceChild method of the Node interface? or is there a simpler way?
Thanks [ November 03, 2006: Message edited by: Miguel Capo ]
I'm in the habit of checking out the Java Developer's Almanac when I need to do something new with the DOM API. You might want to check it out, too (or bookmark it for later).