how can you bind data from dataset to XML file

Answer Posted / pguthi

Declare a data set ds=new dataset();
create an xml file in your working folder.


ds.WriteXmlSchema("here u enter ur xml file path") // this
will write ur table data in xml format like nodes in your
xml file.

ds.ReadXml("here u enter ur xml file path") // this will
read the data from your xml file.

hope it will help u.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the modes of updation in an updatepanel?

725


What are the differences between the response.write() and response.output.write()?

748


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

734


How can I open ashx file in mobile?

823


Explain difference between dataset and recordset?

685


Explain automatic memory management in .net.

769


Explain what is event bubbling?

766


Explain the concept of event bubbling in ASP.NET?

789


How to use a Master Database in Asp.net?

749


Explain diff. Between friend and protected friend?

668


Can you explain architecture of your project ?

841


What is event bubbling?

777


If we remove web.config or machine.config from the application then, is this application will works?

780


Difference between web user control and web custom control?

666


What is protected configuration?

820