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

How you can stop the validation of ASP.NET controls from client side?

0 Answers   Sans Pareil IT Services,


What is the difference between the response.write() and response.output.write() methods?

0 Answers  


What is cookies in asp net?

0 Answers  


What is a web api endpoint?

0 Answers  


I am trying to redirect another site on button click.

8 Answers  






What are Http handler ?

6 Answers   Accenture, BirlaSoft, Satyam, Syntel,


What are typed datasets?

1 Answers   IBS,


how to integrate Language conversion, without asking the enduser to download font, it should auto integrate

1 Answers  


What is caching? What are the different types of caching?

6 Answers  


How response object is related to asp's response object?

0 Answers  


What is a web api? Which protocol is used in a web api?

0 Answers  


What is the difference between session state and session variables ?

6 Answers   Digital GlobalSoft,


Categories