The following code generates myfile3.xml on the c drive. I have an xslt file to convert myfile3.xml
the way I want. Can some one help me how to call my xslt file and apply this two my xml file.?
SqlConnection connString = new
SqlConnection("Server=mi server;UID=test1;PWD=mipase;Database=dondeguardo");
SqlDataAdapter objDA = new SqlDataAdapter("select First_Name,Last_Name,Email,Company_Name,Address_1,Phone,Fax,Title from contact", connString);
DataSet ds = new DataSet();
objDA.Fill(ds);
string xml = ds.GetXml();
StreamWriter sw = new StreamWriter("c:\\myfile3.xml");
sw.Write(xml);
sw.Close();
the way I want. Can some one help me how to call my xslt file and apply this two my xml file.?
SqlConnection connString = new
SqlConnection("Server=mi server;UID=test1;PWD=mipase;Database=dondeguardo");
SqlDataAdapter objDA = new SqlDataAdapter("select First_Name,Last_Name,Email,Company_Name,Address_1,Phone,Fax,Title from contact", connString);
DataSet ds = new DataSet();
objDA.Fill(ds);
string xml = ds.GetXml();
StreamWriter sw = new StreamWriter("c:\\myfile3.xml");
sw.Write(xml);
sw.Close();