|
|
Remove an Element in XML - XML
|
Views : 220
|
|
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 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 |
|
|
|