XML C# Tutorial

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Schema;
    public class MainClass
    {
        public static void Main()
        {
            XmlReaderSettings settings = new XmlReaderSettings();
            settings.ProhibitDtd = false;
            settings.ValidationType = ValidationType.DTD;
            //settings.ValidationType=ValidationType.Schema;
            //settings.Schemas.Add("", "");
            settings.ValidationEventHandler += new ValidationEventHandler(OnValidationError);
            XmlReader reader=XmlReader.Create("value", settings);
            while (reader.Read())
            {
            }
            reader.Close();
        }
        static void OnValidationError(object sender, ValidationEventArgs e)
        {
            MessageBox.Show(e.Message);
        }
    }