|
|
Change the Value of an Element in XML - XML
|
Views : 208
|
|
Tagged in : XML
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
The following code changes the text value of the first <title> element:
Example
*******
x=xmlDoc.getElementsByTagName("title")[0].childNodes[0];
x.nodeValue="Easy Cooking";
|
|
By satheesh, On - 2010-01-30 |
|
|
|