Hi, I'm trying to create an xml document out of a sql 2005 table
I use this code in a query:
select p.name as "NAME"
from nop_product p
for xml path('PRODUCT'),ROOT('STORE')
my problem is that i need 3 level tree - all <PRODUCT> elements to be under <PRODUCTS> like this:
<STORE>
<PRODUCTS>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.