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 does asp.net page work?

0 Answers  


Can a user browsing my Web site read my Web.config or Global.asax files ?

1 Answers  


How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.

0 Answers   Microsoft,


Explain about the Class view window?

0 Answers  


IN an ASP.NET Web application if there is any error, how can you debug?

0 Answers   Siebel,






What are the new web part controls in asp.net 2.0 ?

0 Answers  


Which namespace do the classes, allowing you to support COM functionality, are located?

1 Answers  


Explain the difference between asp and asp.net?

0 Answers  


Is There any Third party tools are using in .Net Technologies? Can u Explain?

4 Answers   HCL,


What is the question mark in a url?

0 Answers  


Explain the use of dataadapter.

0 Answers  


What is distributed system in asp.net?

0 Answers  


Categories