Read xsl in an XmlTextReader : Xml transformation : XML C# Examples


C# Examples » XML » Xml transformation »

 

Read xsl in an XmlTextReader









    
using  System;
using  System.Xml;
using  System.Xml.Xsl;
using  System.Xml.XPath;
using  System.Data.Common;
using  System.Data;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        //  Create  a  data  set  object  
        DataSet  ds  =  new  DataSet("New  DataSet");
            
        XmlTextReader  myXmlReader  =  new  XmlTextReader(@"c:\books.xsl");

        //  Call  ReadXmlSchema    
        ds.ReadXmlSchema(myXmlReader);
    
        myXmlReader.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml transformation