namespace third { using System; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; using System.Threading; public class Class1 { public static void Main() { XslTransform tXslTransform = new XslTransform(); tXslTransform.Load("http://www.dur.ac.uk/barry.cornelius/tomcat/xml.processing/consumables.xsl"); XPathDocument tXPathDocument = new XPathDocument("http://www.dur.ac.uk/barry.cornelius/tomcat/xml.processing/consumables.xml"); XmlTextWriter tXmlTextWriter = new XmlTextWriter(Console.Out); tXmlTextWriter.Formatting = Formatting.Indented; tXslTransform.Transform(tXPathDocument, null, tXmlTextWriter); Thread.Sleep(6000); } } }