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

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

4 Answers  


Can two web application share a session and application variable ?

5 Answers   Satyam, V3 Engineers,


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  


explain code with multi inhertance

0 Answers  


6. Tell us about a time when you failed to meet a deadline. What were the repercussions?

0 Answers   AlKhaleej, Swatz Oils,






If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  


How can you provide an alternating color scheme in a Repeater control?

6 Answers   Siebel Systems,


we are working in .net namespaces like using system.io,system.text. these namespace before we use "using " keyword what means of using?

7 Answers   CEI, CSC, HCL, Tech Mahindra,


is it possible to persiste customize object in view state? how it is?

2 Answers  


What is the difference between Postback and Ispostback Property?

7 Answers   Atrocity Apps Technologies, DC Infotech, HCL, Maples, Visual Soft,


What is bound controls

0 Answers   MCN Solutions,


What is jade template engine?

0 Answers  


Categories