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

Q

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

✍: Guest

A

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.

2007-10-24, 4461👍, 0💬