> Any ideas on what is happening and how to rectify it. Since dom4j doesn't change the list returned from the Jaxen XPath engine, this seems to be more a Jaxen issue ... however since the Jaxen documentation does not specifically state that the list is 'mutable', I think it would be good programming practices to assume the returned list as being read-only.
> nodes = addAll(nodes, DocumentHelper.selectNodes(".//SubAssembler/MECP", > rootElement)); I tried this and I'm not sure what is happening in this addAll() method but I could not repeat the problem you highlighted. Regards, Edwin -- http://www.edankert.com/ ------------------------------------------------------------------------- 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