Transform XML document to a html document : Xml transformation : XML C# Examples


C# Examples » XML » Xml transformation »

 

Transform XML document to a html document









    
using  System;
using  System.Collections.Generic;
using  System.ComponentModel;
using  System.Data;
using  System.Xml.Xsl;
using  System.Xml;

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

                //  Load  the  XSL  stylesheet.
                transform.Load("orders.xslt");

                //  Transform  orders.xml  into  orders.html  using  orders.xslt.
                transform.Transform("orders.xml",  "orders.html");

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml transformation