Hi all,I am trying to write a complex XML using TSQL.;WITH XMLNAMESPACES('www.your_url.com' as s3,'www.google.com' as s2,'www.google.com.mt' as s1)SELECT"Cell"='StringLiteral',"Cell/Data"='String',"Cell/Data" = 'Acme, Inc', ''FOR XML PATH('Row')<Row xmlns:s1="www.google.com.mt" xmlns:s2="www.google.com" xmlns:s3="www.your_url.com"> <Cell>StringLiteral<Data>StringAcme, Inc</Data></Cell></Row>This works but does not satisfy my requirements. I want to obtain the following result (changes in bold).<Row xmlns:s1="www.google.com.mt" xmlns:s2="www.google.com" [b]s1[/b]:s3="www.your_url.com"> <Cell>StringLiteral<Data>StringAcme, Inc</Data></Cell></Row>Can somebody help me?Thanks in advance
↧