XML C#

using System;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass
{
    public static void Main()
    {
        NameTable nt = new NameTable();
        object book = nt.Add("book");
        object title = nt.Add("title");
        XmlReaderSettings settings = new XmlReaderSettings();
        settings.NameTable = nt;
        XmlReader reader = XmlReader.Create("books.xml", settings);
        while (reader.Read())
        {
            if (reader.NodeType == XmlNodeType.Element)
            {
                object localname = reader.LocalName;
                if (book == localname)
                {
                    Console.WriteLine("local name");
                }
                if (title == localname)
                {
                }
            }
        }
        reader.Close();
    }
}