I am attempting to filter out elements from a document that match a
certain name.  I am trying to do this by getting an elementIterator(), then
calling the Iterator.remove() when I find an element I don't want.  I get an
exception "java.lang.UnsupportedOperationException: remove() is not
supported by this iterator".  If I try removing the element directly from
the underlying structure while the iterator is open, I get a concurrent
modification exception as is expected.

Is there a reason why the Iterator.remove() is not supported?  Is there a
better way of doing this?

Dave



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to