Remove an Element in XML - XML Views : 220
Tagged in : XML
0 0
Send mail
The removeChild() method removes a specified node (or element).

The following code fragment will remove the first node in the first <book> element:

Example
*******

x=xmlDoc.getElementsByTagName("book")[0];

x.removeChild(x.childNodes[0]);

By satheesh, On - 2010-01-30



    Login to add Comments .