| Author |
Remove duplicate nodes in DOM
|
Ankit Nagpal
Ranch Hand
Joined: Sep 09, 2008
Posts: 47
|
|
Hi,
I am using the DOM API for a random XML operation and have a NodeList which contains the following 3 nodes (All element nodes):
In this list, I want to remove the duplicate node i.e. Node number 3. Does any one have any clues on how can I do the same?
Thanks in advance.
Ankit
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
The org.w3c.dom.Node interface provides the removeChild method - have you tried that?
Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: Remove duplicate nodes in DOM
|
|
|