Change the Value of an Element in XML

by satheesh 2010-01-30 10:27:24

The following code changes the text value of the first <title> element:

Example
*******

x=xmlDoc.getElementsByTagName("title")[0].childNodes[0];
x.nodeValue="Easy Cooking";

Tagged in:

919
like
0
dislike
0
mail
flag

You must LOGIN to add comments