Necesitas reemplazar SET con SELECT y funcionará
entonces esto
SET @xml = (
necesita ser reemplazado con
SELECT @xml = (
Necesitas reemplazar SET con SELECT y funcionará
entonces esto
SET @xml = (
necesita ser reemplazado con
SELECT @xml = (