> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday 23 June 2004 11:31 > To: [EMAIL PROTECTED] > Subject: Re: [dom4j-user] ConcurrentModificationException > > > On Tuesday 22 June 2004 22:14, Mike Skells wrote: > > Copy the list and then iterate and it shoul be OK > > How do you clone the list? List does not declare clone() and > node.elements() > does only return the List interface. new ArrayList(nodeList)? > That's really > ugly :-( Copy the list, not clone, hence new ArrayList(nodeList), or similar.
If you want nice code then don't use the iterators > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > dom4j-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dom4j-user > ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user