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.
Read’s a XML document in to Dataset.
This is a function, which returns the string containing XML document.
This writes a XML data to disk.
Asked In: Many Interviews |