Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any easy way to create an XML table
Message
From
08/10/2002 19:44:39
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00709062
Message ID:
00709093
Views:
20
>I need to create an XML Table from a Windows Form using an SQL table as the source. Know very little about XML.
//Connect to the data base and get the table
SqlConnection data = new SqlConnection(connectionString);
DataSet dataSet = new DataSet();
SqlDataAdapter getTable = new SqlDataAdapter("select * from table", data);
getTable.Fill(dataSet, "table");
textBox1.Text = dataSet.GetXml();
Does it need to be any fancier than that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform