Sunday 2 October 2011

What are the various methods provided by the dataset object to generate XML?


Note: XML is one of the most important leap between classic ADO and ADO.NET. So this question is normally asked more generally how can we convert any data to XML format. Best answer is convert in to dataset and use the below methods.
  ReadXML
Read’s a XML document in to Dataset.
  GetXML
This is a function which returns the string containing XML document.
  WriteXML
This writes a XML data to disk.

No comments:

Post a Comment