Perspective: Bind instance parameter using scripts

I have created a new parameter (tagPath) in the view and bound the label to this parameter:

image

I have modified the script that creates the instances in the Flex Repeater, but the final result is not what I expected. Instead of displaying the value of the tag, “value” is displayed:

Script:

Flex Repeater:
image

Best Regards.