How can we convert any data to XML format?


As Between both ADO and ADO.Net, XML is the most important leap. The answer to the question "How can we convert any data to XML format?" is Convert in to dataset and use the methods below:

ReadXML: It Read's a XML document in to Dataset.
GetXML: It returns the string containing XML document.
WriteXML: It writes a XML data to disk.