File To XML DOM - CSharp System.Xml

CSharp examples for System.Xml:XML File

Description

File To XML DOM

Demo Code

/*//from w w  w  .  ja v  a  2  s  .  com
* 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 XmlDocument FileToDOM(string filename) {
         XmlDocument doc = new XmlDocument();
         doc.Load(filename);
         return doc;
      }
}

Related Tutorials