Hey everyoneI've been using FOR XML EXPLICIT for about 2 years now and my company is starting to switch over to FOR XML PATH queries.Here is my query: SELECT SeID "@sessionid", WebID "@webid", Cast(Data as nvarchar(max)) "@data" FROM Account_Sessions WHERE (SeID = '5E9E878B-A94A-4466-954C-37C2E4FEB649') AND (CliID = 1) FOR XML PATH('accountsession'),ROOT('ROOT')Sorry, seems like when posting the resultset, it looks fine when viewing the post as it's just markup with < and >.I've tried casting the datatype to an nvarchar(max) and this works, but I'm guessing this isn't possible since it's an XML document inside of another XML from the outer query.Anyone have any suggestions on how I can bring my "SeID" and "WebID" out along with the "Data" column in one resultset XML?Any help appreciated. Thanks in advance.