using System; using System.IO; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; using System.Net; namespace BasicTransform { /// /// Summary description for Class1. /// class Class1 { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { Class1 c = new Class1(); } public Class1() { XslTransform titlesList = new XslTransform(); titlesList.Load("MovieTransform.xsl"); XmlUrlResolver resolver = new XmlUrlResolver(); NetworkCredential myCred; myCred = new NetworkCredential(); XPathDocument movies = new XPathDocument("movies.xml"); XmlTextWriter htmlOut = new XmlTextWriter("movieTitlesTransformed.html",null); titlesList.Transform(movies, null, htmlOut, resolver); } } }