dcsimg
How to delete an XML node and its subsequest childs?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rahul_Vaid
Posted On:   Tuesday, February 3, 2004 06:38 AM

Hi, Could anyone pls tell me how can i delete a node and its subsequent childs using java DOM API,such that there can be multiple nodes having the same name,but how should i proceed once if i have handle to the node that needs to be deleted. Example as: abc some value xyz some value In such a scenario,using the ID attribute i get a handle of employee node,now i wanna delete that node along with its childs Thnx in advance    More>>

Hi,

Could anyone pls tell me how can i delete a node and its
subsequent childs using java DOM API,such that there
can be multiple nodes having the same name,but
how should i proceed once if i have handle to the node
that needs to be deleted.


Example as:





abc

some value





xyz


some value






In such a scenario,using the ID attribute i get a
handle of employee node,now i wanna delete
that node along with its childs




Thnx in advance    <<Less

Re: How to delete an XML node and its subsequest childs?

Posted By:   Anonymous  
Posted On:   Wednesday, February 4, 2004 02:48 AM

I havenĀ“t workes with the DOM API, but I would search the javadoc for Node class ... something like Node.delete() or
Node.delete(Node child) ...
About | Sitemap | Contact