modeifying the value of the node

how to update the value if the node

<filter>dofilter</filter>

inthe place of dofilter i have to changed to dofill

i have used setNodeValue("dofill");

but no use

for creating above element i have used

Element e= document.createElement("filter");

Text val= document.createTextNode("dofilter");

and add these two elements to main element

how to modify this.please tell me

[442 byte] By [pvsra] at [2007-10-2 8:30:28]
# 1
you need to remove the original text node, and add a new one in it's place.
dmbdmba at 2007-7-16 22:31:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...