That's a bug in your code. You cannot set Hollywood.Display to a string, but only to a numeric display identifier. The CreateDisplay() result "test" is neither a string nor a number, it is a special internal value that cannot be used from XML. Just do a