You mean like this? Or am I missing something?
DECLARE @X XML
SELECT @X = ( SELECT * FROM sampleTable FOR XML AUTO )
SELECT @X as [@X]
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills