new XmlTextReader(String fileName) : XmlTextReader « System.Xml « C# / C Sharp by API






new XmlTextReader(String fileName)

   

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

class MainClass
{
  static void Main(string[] args)
  {
    XmlTextReader reader = new XmlTextReader("Sample.xml");

    // Read the File
    while (reader.Read())
    {
      
    }

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

   
    
    
  








Related examples in the same category

1.new XmlTextReader (String localURL)
2.XmlTextReader.BaseURI
3.XmlTextReader.LocalName
4.XmlTextReader.Name