public void ReadXmlDocument(){reader = new XmlTextReader("Article.xml");// Read the Start Elementreader.ReadStartElement("Article");// Read an attributereader.Read();if (reader.NodeType == XmlNodeType.Element && reader.Name == "Header" &&reader.AttributeCount > 0){WriteToFile("\n\t\t" + reader.GetAttribute("Title"));}// Can be a call to Readreader.ReadStartElement("Header");WriteToFile("\nAuthor : " + reader.ReadElementString("Author"));// Can be a call to ReadWriteToFile("Date : " + reader.ReadElementString("Date") + "\n");reader.ReadEndElement();ReadSections();reader.Close();}