I'm not sure what you mean by incomplete, please show what you mean.
If you are using SQL 2000 then you cannot do anything other than return the results of the query.
If you are using SQL 2005 then you can assign the results as with other variables:
Code:
DECLARE @LocationsXml XML
SET @LocationsXml = (SELECT LocationName, LocationNumber
FROM QATollFreeLocations
WHERE QAId = 775904
FOR XML Auto, Elements)
--
Joe (
Microsoft MVP - XML)