How do we write data from the database to a XML file?

 Posted by Chvrsri on 2/10/2012 | Category: Web Services, Remoting Interview questions | Views: 2499 | Points: 40
Answer:

we can do that using WriteXml method.

In C#

’Filling the DataSet
 ds.WriteXml(Server.MapPath ("sample.xml" ) ) 


In VB

//Filling the DataSet
ds.WriteXml(Server.MapPath ("sample.xml" ) ); 


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response