How to generate XML from a dataset and vice versa?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is ADO.NET serialization slower than ADO ?

836


How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

792


How to check if a datareader is closed or opened? IsClosed()

802


What does datareader object do?

770


How do you update a dataset in ado.net?

783


What are the difference between readonly vs. Const?

726


What is connection in ado.net?

730


Does sqlclient and oledb class share the same functionality?

733


What is the difference between Optimistic and Pessimistic locking?

766


Which parameter of ConnectionString is used to specify the name of the database?

803


Define the data provider classes that is supported by ado.net?

768


What is the difference between connected and disconnected environment?

741


Is entity framework better than ado.net?

704


Which method is used to sort the data in ADO.Net?

1768


What are two important objects of ADO.Net?

764