Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to apply XSLT TO AN XML

Status
Not open for further replies.

RaulMA

Programmer
Apr 4, 2006
19
US
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();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top