Hello SJ,
I should have mentioned in my original post that I was getting the error in the foreach loop. Do you have a suggestion for where I could call Dumper to diagnose the problem?
If I call the node variable $e before the foreach loop it's undefined, but if I call it within, the program fails before Dumper can return a value.
All the best, Leigh