I'm trying to build an XML for a soap request. cannot assign variable

It happens sometimes, in my case e.g. when assigning value to JObject.Item.
I did not find any specific pattern why it happens.
Usually I resolve it by cutting (Ctrl-X) the whole value and pasting it (Ctrl-V) in the advanced editor screen.

Cheers