static void Main(string[] args)
        {
            string file = "C:\\Users\\ANLALK\\Desktop\\ApplicationTesterResultComponentSummary.xml";
            XmlDocument doc = new XmlDocument();
            doc.Load(file);
            XmlNodeList errorElements = doc.SelectNodes("APPLICATION_TESTER/COMPONENT");
            StreamWriter writetext = new StreamWriter("C:\\write.txt");
           // Line("writing in text file");
            
            foreach (XmlNode error in errorElements)
            {
                writetext.Write(error.SelectSingleNode("COMPONENT_NAME").InnerText + ",");
            }
            writetext.Close();
            Console.ReadKey();
        }
