Use XslCompiledTransform : XML Transform « XML « C# / C Sharp






Use XslCompiledTransform

  
using System;
using System.Xml.Xsl;

class MainClass {
    public static void Main() {
        XslCompiledTransform transform = new XslCompiledTransform();

        transform.Load("orders.xslt");
        transform.Transform("orders.xml", "orders.html");
    }
}

           
         
    
  








Related examples in the same category

1.Perform an XSL Transform
2.Read command line input and do the xml xsl translation
3.Illustrates the XslTransform classIllustrates the XslTransform class
4.XML transformation: transform XML file to HTML file
5.Perform an XSL Transformation using XML and XSL content and with some XSLT arguments
6.Xslt Transformation Helper