How to write the data from database into an XML file

Platform: ASP.NET|Category: XML

VB.NET

’Fill the DataSet
ds.WriteXml(Server.MapPath ('products.xml' ) )

C#

//Fill the DataSet 
ds.WriteXml(Server.MapPath ('products.xml' ) );

Note : Make sure you have write and modify rights.