I exported data from SQL Server to XML file like this :
USE Northwind;
SELECT * FROM Products FOR XML PATH;
For NULL value , it returned xsi:nil="true".
For example: <ProductName xsi:nil="true"/>
Can I export without the xsi:nil="true" ?
But I do want to have tag name like : <ProductName /> or <ProductName></ProductName>
Can someone tell me how to export like this?
Thanks.