Monday, January 23, 2012

C#(Write The DataSet In To XML Schema)



DataSet ds = new DataSet();
SqlDataAdapter sda = new SqlDataAdapter(strQuery, conn);
sda.Fill(ds);

//write the dataset into the XML Schema
ds.WriteXmlSchema(@"D:\CompetitionWinner.xsd"); //Give the file path

No comments:

Post a Comment