I am trying to create an xml output in SQL 2008 using FOR XML Path. This is working fine:
Clothing
I have another way. It seemed a tad bit easy to me. Say, for example I have an xml like
DECLARE @xml xml=' '
DECLARE @multiplenodes XML = 'This is a test node 2 This is another test node '
SET @xml.modify('insert sql:variable("@multiplenodes") into (/parameters)[1]')
SELECT @xml
Do tell me if this helps.