Get Xml Reader from FileInfo - CSharp System.Xml

CSharp examples for System.Xml:XML File

Description

Get Xml Reader from FileInfo

Demo Code

//              Copyright (c) 2006-2017 All Rights reserved                   *
using System.Xml.XPath;
using System.Xml;
using System.IO;// w w  w.j av a  2 s . c om
using System.Globalization;
using System;

public class Main{
        #region GetXmlReader

      public static XmlReader GetXmlReader(FileInfo fileInfo)
      {
         var textReader = new XmlTextReader(fileInfo.FullName);
         return textReader;
      }
}

Related Tutorials