sql server FOR XML EXPLICIT

enrique_aeo
enrique_aeo used Ask the Experts™
on
hi experts, i have this query
SELECT 1 AS Tag, NULL AS Parent,
       ProductID AS [Product!1!ProductID],
       Color AS [Product!1!Color!Element]
FROM Production.Product
ORDER BY ProductID
FOR XML EXPLICIT;
GO

i do not understand
1 AS Tag, NULL AS Parent,
[Product!1!ProductID],
[Product!1!Color!Element]
xmlFORexplicit.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You can find explanation here http://msdn.microsoft.com/en-us/library/ms189068.aspx 
only you will always have TAG = 1 and Parent being  Null

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial