Hi there Peter,
thanks for you reply. I actually sorted this myself - I was using loadcontentfromfile(), which did not databind the xml so could not use the itemdatabound() handler.
I've now moved the code to itemdatabound, and modified it to the following (in the unlikely event it's of use to anyone else):
This seems to work fine - however I'm looking at your breadcrumb demo just now :)
Many thanks!