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

 Posted by ArticlesMaint on 9/17/2009 | Category: ADO.NET Interview questions | Views: 8530

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response