Save XML transformation result to XmlWriter : Xml transformation : XML C# Examples


C# Examples » XML » Xml transformation »

 

Save XML transformation result to XmlWriter









    
using  System;
using  System.Text;
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();

                transform.Load("orders.xslt");

                StringBuilder  htmlContent  =  new  StringBuilder();
                XmlWriter  results  =  XmlWriter.Create(htmlContent);
                transform.Transform("orders.xml",  results);
                Console.WriteLine(htmlContent.ToString());
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml transformation