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 are the types of authentication in asp.net?

0 Answers  


In which situation can you not use a viewstate?

0 Answers  


Where is asp.net session stored?

0 Answers  


What is ViewState ? and how it is managed ?

1 Answers  


Can we change the page layout in ASP.NET 2.0 as Grid Layout like in previous version

2 Answers   Citrix, TCS,


Usage of web.config?

2 Answers   Microsoft,


Explain the advantages of passport authentication.

0 Answers  


What is Pre-Render event in ASP.NET?

0 Answers   MindCracker,


How you will manage the state of ASP.NET controls?

0 Answers   Sans Pareil IT Services,


What are custom user controls in asp.net?

0 Answers  


How many types of session in asp.net2.0

28 Answers   ABC, DOT, First Europa, HCL, iRely, TCS,


What is postback in asp net?

0 Answers  


Categories