That's unnecessary, using $device (.....) as the context is fine.
'Context' is the magic word that made the penny drop. This:
Does just what I need.$subdevice = $device->find('/subdevice', $device);
I was only looking at stuff in the debugger to try to understand the difference between nodesets and node lists. It wasn't helpful as both are far too large to read.
All I could really gleen was whether my code was giving vaguely sensible results.
Thanks a mill
Nonk
In reply to Re^2: nodelists and nodesets
by nonnonymousnonk
in thread nodelists and nodesets
by nonnonymousnonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |