how can you bind data from dataset to XML file

Answers were Sorted based on User's Feedback



how can you bind data from dataset to XML file..

Answer / 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

how can you bind data from dataset to XML file..

Answer / sri charan

i think question is wrong.

binding means process between control and data objects. here
in this question both dataset and xml file are data object.
then how can we bind them..????

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

Why is global asax is used for?

0 Answers  


Do I need to have the latest version of windows media player installed?

0 Answers  


What would be the salary of an Asp.net developer with 1 and half year experience in indian rupees..??

5 Answers  


How to create discussion forum in asp.net mvc? : Asp.Net MVC

0 Answers  


Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do you add an event handler?

1 Answers   Zenith,






Can the action attribute of a server-side tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?

1 Answers  


What is http protocol and how it works?

0 Answers  


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

0 Answers   Satyam,


Explain model, view and controller represent in an mvc application? : asp.net mvc

0 Answers  


Which tab of the web site administration tool do you use to manage application setting ,debug and tracing?

2 Answers  


What was the difference between machine.config and web.config files

17 Answers   Assurgent, NIIT, TCS,


What does this do? sn -t foo.dll

3 Answers  


Categories