Perform an XSL Transform - CSharp XML

CSharp examples for XML:Transform

Description

Perform an XSL Transform

Demo Code




using System.Xml.Xsl;
public class MainClass
{

    public static void Main()
    {//from   w ww. ja  v a 2  s .co  m
        XslCompiledTransform transform = new XslCompiledTransform();
        transform.Load(@"..\..\orders.xslt");
        transform.Transform(@"..\..\orders.xml", @"..\..\orders.html");

    }
}

Related Tutorials