A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Maybe the string operations are suitable:
if @xml like N'<?xml%'
set @xml = ltrim(substring(@xml, charindex(N'?>', @xml) + 2, len(@xml)))