Code:using System; using System.Xml; namespace ParseXML { /// <summary> /// Summary description for Control. /// </summary> class Control { /// <summary> /// Loads RptSendMailConfig.xml and searches for the Logo tag. /// </summary> /// <param name="args"></param> static void Main(string[] args) { //Declare a string for the SentraliantLogo string logo = "logo"; //Create a reader and load the XML file XmlTextReader reader = new XmlTextReader("C:\\development\\C#\\ParseXML\\RptSendMailConfig.xml"); //Begin the read while(reader.Read()) { //Search for any element tag if(reader.NodeType == XmlNodeType.Element) { //If you find a element tag, search to see if it is the logo element if(reader.LocalName.Equals(logo)) { Console.WriteLine("logo: {0}", reader.ReadString()); Console.ReadLine(); } } } } } }