﻿namespace TitlePrinter
{
    using System;
    using System.Xml;
    using System.Collections.Generic;
    class TitlePrinter
    {
        const string CatalogueSource = "../../Catalogue.xml";
        static void Main()
        {
            var catalogue = XmlReader.Create(CatalogueSource);
            while (catalogue.Read())
            {
                if (catalogue.Name == "title")
                {
                    //catalogue.Read();
                    Console.WriteLine(catalogue.ReadElementContentAsString().Trim());
                }
            }
        }
    }
}
