Create Default XML Reader - CSharp System.Xml

CSharp examples for System.Xml:XML Reader

Description

Create Default XML Reader

Demo Code

/*/* w w w.j  a v  a  2 s.  c  o m*/
* Copyright (c) 2005 Poderosa Project, All Rights Reserved.
* $Id: XMLUtil.cs,v 1.2 2005/04/20 08:45:48 okajima Exp $
*/
using System.Text;
using System.Xml;
using System.Collections;
using System;

public class Main{
        public static XmlReader CreateDefaultReader(string filename) {
         XmlTextReader re = new XmlTextReader(filename);
         re.WhitespaceHandling = WhitespaceHandling.Significant;
         return re;
      }
}

Related Tutorials