It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes help with removing child node Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "help with removing child node" Watch "help with removing child node" New topic

help with removing child node

karthik sudarshan

Joined: May 25, 2007
Posts: 4
Hi All, I have a DOM xml as follows

<Record FREQ="Monthly" MODE="Advanced" >
<PText p_text="abc."/>
<PText p_text="xyz."/>

I want to delete only the 2nd child of Record (p_text = "xyz")
Now assuming I have named my xml as xmlDOM, this call actually points to the node I want to delete


I now need some help to delete this childnode only. I want to retain the p_text = "abc".

Thanks in advance
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

You are asking how to do that in Javascript, right? I think that question would get a better answer in our HTML and Javascript forum.
I agree. Here's the link:
subject: help with removing child node
It's not a secret anymore!