How to generate XML from a dataset and vice versa?

Answers were Sorted based on User's Feedback



How to generate XML from a dataset and vice versa?..

Answer / vijay

DS.ReadXML reads XML document and writes to Dataset
DS.WriteXML writes XML document from Dataset

Is This Answer Correct ?    4 Yes 1 No

How to generate XML from a dataset and vice versa?..

Answer / spvarma

dataset has read xml and write xml methods.
if datset ds then
ds.readxml(option,filepath)
ds.writexml(option,filepath)

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ADO.NET Interview Questions

WHAT Are the major major compnents of a data provider in ADO.net.

14 Answers   Infosys, Wipro,


OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbConnection1)); OleDbCommandBuilder cmd=new OleDbCommandBuilder(ole); ole.Fill(dataSet11,"login"); DataRow drow=dataSet11.Tables ["login"].NewRow(); drow[0]=textBox1.Text; drow[1]=textBox2.Text; drow[2]=textBox3.Text; dataSet11.Tables["login"].Rows.Add (drow); ole.UpdateCommand=cmd.GetUpdateCommand(); ole.Update(dataSet11,"login"); MessageBox.Show("one row added"); this gives exception.how to solve it

1 Answers   Nimaya,


Data reader read and forward only, how is it possible to get 2 tables of data at a time?

0 Answers  


What is the namespace in which .NET has the data functionality classes?

5 Answers   eMantras,


When we are running the Application, if any errors occur in the Stored Procedure then how will the server identify the errors?

5 Answers   HCL,


Which object needs to be closed?

0 Answers  


What is data adapter in ado.net with example?

0 Answers  


How to retrieve the third table value from the data set?

2 Answers   Network Solutions,


How does ado.net work?

0 Answers  


What is the use of sqldatareader class?

0 Answers  


What is the difference between OLEDB Provider and SqlClient?

0 Answers  


What are the several execute methods of ado.net?

0 Answers  


Categories