Load XmlDocument Sample : XmlDataDocument : XML C# Examples


C# Examples » XML » XmlDataDocument »

 

Load XmlDocument Sample









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

public  class  MainClass
{
    public  static  void  Main()
    {
        try
        {
            XmlDataDocument  myXmlDocument  =  new  XmlDataDocument();

            myXmlDocument.Load("Sample.xml");

            myXmlDocument.Save(Console.Out);
        }
        catch  (Exception  e)
        {
            Console.WriteLine("Exception:  {0}",  e.ToString());
        }
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» XmlDataDocument