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 is an example of an application service provider?

451


What is comparevalidator?

521


Is asp.net is a programming language?

487


What is the file through which you can customize your asp.net application?

543


What is a user session?

497






What is the usage of DelegatingHandler?

589


What is a 1x1 pixel?

528


How to implement role based security in asp.net mvc? : Asp.Net MVC

433


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1833


What are the Types of object in asp

633


Where is http session stored?

499


How can you pass multiple complex types in Web API?

572


What is semantic gap?

619


What is a web based system?

464


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

563