I want to wrap the xml from a column into an out for xml path query without
the column name as an element.
declare @tab table (col xml)
insert @tab
select '<element/>'
select 'val' AS "@att" , col
from @tab
for xml path ('ROOT')
This gives
<ROOT att="val">
<col>
<element />
</col>
</ROOT>
but i want
<ROOT att="val">
<element />
</ROOT>
All help most appreciated.
www.sql-library.com[/url]