Hey Geoff,
(No, I am not the only person active on this forum LOL, it's just that I'm here quite a lot.)
I see you're making excellent progress on understanding Cook Self Service with Joomla!.
Now, this (JDom) is an area that I am not an expert in so please forgive me if this sounds odd.
First, can we have the error being spat out by PHP please?
Next, and this is where I am treading on thin ice, I see you are checking to see if an Object is empty. Perhaps checking to see if JDom is empty is not a good thing (again, i could be wrong!), so maybe you could check to see if the actual value of the object is valid:
if (empty($this->questionsitem)) {
... blah ... blah
}
I think you'll see what I mean, but I humbly apologise in advance to those that know better than I if this is way off track. I guess we'll both learn.
Regards,
Edward.