I am trying to figure out how I can insert a new line between fields in SQL Server 2008.
Current XML:
<products>
<product>
<ProductID>1</ProductID>
<ProductName>A.1</ProductName>
</product>
<product>
<ProductID>2</ProductID>
<ProductName>B.1</ProductName>
</product>
</products>
Desired XML:
<products>
<product>
<ProductID>1</ProductID>
<ProductName>A.1</ProductName>
</product>
<product>
<ProductID>2</ProductID>
<ProductName>B.1</ProductName>
</product>
</products>
Any ideas how I can inject Newline/carriage return in the XML output?
Any thoughts would be greatly appreciated.
Thanks,
S
Simple. Take the output, insert the lines. That is AFTER sql server.