Create XmlTextReader from StringReader : XmlTextReader : XML C# Examples


C# Examples » XML » XmlTextReader »

 

Create XmlTextReader from StringReader









    
using  System;
using  System.IO;
using  System.Xml;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        StringReader  stream  =  new  StringReader("Sample.xml");
        XmlTextReader  reader  =  new  XmlTextReader(stream);
        while  (reader.Read())
        {
            //TODO  -
        }

        if  (reader  !=  null)
            reader.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» XmlTextReader