Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1-rc-1
-
Component/s: XML Processing
-
Labels:None
-
Environment:Windows XP. Eclipse 3.2.
-
Testcase included:yes
-
Number of attachments :
Description
Using XMLParser:
node.nodelist.remove(o) returns true. But node is not removed.
I think the node.nodelist.remove(o) syntax is preferred to o.parent().value.remove(o) which does work.
The issue is that node.nodeList returns a copy of the relevant nodes. The remove actually works but only in the copy.
If you go and use node.nodeList again, it generates a new list. I am not sure if this is a bug or a feature but the workaround is: