using System; using System.Data; class Program { static void Main() { // Create a new DataSet with a single table DataSet dataSet = new DataSet(); DataTable table = new DataTable("Table1"); table.Columns.Add("Column1", typeof(int)); table.Rows.Add(1); table.Rows.Add(2); table.Rows.Add(3); dataSet.Tables.Add(table); // Get the XML representation of the DataSet string xml = dataSet.GetXml(); // Print the XML to the console Console.WriteLine(xml); } }In this example, a new DataSet object is created with a single table containing three rows. The `GetXml` method is called on the DataSet object to retrieve the XML representation of the data. Finally, the XML string is printed to the console. This code example uses the System.Data namespace, which is part of the .NET Framework Class Library.