I want to Transform xml using xslt and create new File instead of the set value xmlcontrol in Visual Studio. Below is My code. I need to create a new XML Transformed File Called tr.xml file in My root directory.
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load(Server.MapPath("hotels.xml"));
System.Xml.Xsl.XslTransform trans = new
System.Xml.Xsl.XslTransform();
trans.Load(Server.MapPath("hotel.xsl"));
Xml1.Document = doc;
Xml1.Transform = trans;
Can Any one please help on this??/