[jdom-interest] JDOM Beta 9 - List set problem
arosen at novell.com
Thu Oct 2 14:20:38 PDT 2003
It looks like it should work... Could you provide a standalone test case
that demonstrates the problem?
>>> Alves Licinio S NPRI <AlvesLS at Npt.NUWC.Navy.Mil> 9/25/2003 4:13:47
With JDOM Beta 8, I could get a List of elements, then set by index a
Now with Beta 9, it doesn't seem to get properly set.
I've verified this by going back and fourth with different versions of
JDOM, but the same source code.
Element partlist_element = root.getChild("PartList");
List partlist = partlist_element.getChildren("Part");
//... I search partlist for the index of the old element I want
//... I generate it's new replacement, new_part_element
// then I try to add it... replacing my old element
// the above no longer seems to set the new_part_element (and it's
// a temp fix that works for JDOM Beta 9 is (but it shouldn't be
OR using deprecated methods
//... then I write the tree back out to my XML file
Licinio "Lou" Alves
Email: AlvesLS at Npt.NUWC.Navy.mil
More information about the jdom-interest