[jdom-interest] Why don't Comment, Element, Text, etc extend common jdom object?
J S
ladyslipper98201 at yahoo.com
Mon May 27 15:34:37 PDT 2002
This would be helpful in the following situation:
List l = rootTitle.getContent();
Iterator it = l.iterator();
Vector titleChildren = new Vector();
while(it.hasNext() ) {
JdomObject e = (JdomObject) it.next();
e.detach();
titleChildren.add(e);
}
Also calling e.detach seems to throw a concurrent
modification exception. Anyone understand why? To
get around that I interate through my new list of
objects afterwards, which works fine.
Thanks,
Jo
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
More information about the jdom-interest
mailing list