ASP.NET XmlReader - How to read and process Xml file element name

XmlReader - Read and process XML file element name
ReadingXMLFile.aspx

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml" %>

<!DOCTYPE html>

<script runat="server">
    protected void Page_Load(object sender, System.EventArgs e)
    {
        string xmlFile = Request.PhysicalApplicationPath + @"App_Data\ITBookStore.xml";
        try
        {
            using (XmlReader reader = XmlReader.Create(xmlFile))
            {
                string xmlContent;
                while (reader.Read())
                {
                    if (reader.NodeType == XmlNodeType.Element)
                    {
                        xmlContent = "";
                        for (int counter = 1; counter <= reader.Depth; counter++)
                        {
                            xmlContent += "    ";
                        }
                        xmlContent += " " + reader.Name + "<br />";
                        Label1.Text += xmlContent;
                        reader.MoveToElement();
                    }
                }
            }
        }
        catch (Exception ex)
        {
            Label1.Text = "An Error Occured: " + ex.Message;
        }
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>XmlReader: How to read and process Xml file element name in asp.net</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Navy; font-style:italic;">XML Example: Reading Xml Element Name</h2>
        <asp:Label 
             ID="Label1"
             runat="server"
             Font-Bold="false"
             ForeColor="PaleVioletRed"
             Font-Size="Large"
             Font-Names="Comic Sans MS"
             >
        </asp:Label>
    </div>
    </form>
</body>
</html>
ITBookStore.xml

<?xml version="1.0" encoding="utf-8" ?>
<!-- This is a sample XML file for various XML example-->
<books>
  <book ID="1">
    <name>Adobe Flex 3: Training from the Source</name>
    <author>Jeff Tapper</author>
    <price>47.99</price>
    <type>Flex</type>
    <image>AdobeFlex3.jpeg</image>
  </book>
  <book ID="2">
    <name>Styling Web Pages with CSS</name>
    <author>Tom Negrino</author>
    <price>15.99</price>
    <type>CSS</type>
    <image>CSS.jpeg</image>
  </book>
  <book ID="3">
    <name>Adobe Flash CS4 Professional</name>
    <author>Mark Schaeffer</author>
    <price>19.99</price>
    <type>Flash</type>
    <image>FlashCS4.jpeg</image>
  </book>
</books>
More asp.net examples