Joel Rosi-Schwartz
Tue, 26 Dec 2006 11:40:13 -0800
Hi,
I've ran into an odd problem after moving my application over to Java 5. The
code below worked fine under Java 1.4.x but it nows throws an
unsupportedOperationException. I have also tried and iterator and add() but
I get the same problem. I appears that for some reason the list I am getting
back from selectNodes is now readonly.
List nodes = DocumentHelper.selectNodes("./MasterAssembler/MECP",
rootElement);
nodes = addAll(nodes, DocumentHelper.selectNodes(".//SubAssembler/MECP",
rootElement));
Any ideas on what is happening and how to rectify it. Btw, for the moment I
a simply creating an ArrayList and copying both lists into it. This works
fine in this instance because I am not manipulating the list. But in the
future I am sure I will run into a problem with this kludge.
Thanks,
Joel
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user