public static void Task2() { Console.WriteLine("Enter a Option:"); Console.WriteLine("1. Add Address"); Console.WriteLine("2. Add New Employee"); Console.WriteLine("3. Delete Existing Employee"); string option = Console.ReadLine(); XMlProgram2 xmlProg2 = new XMlProgram2(); string applicationLocation = AppDomain.CurrentDomain.BaseDirectory; XmlDocument xmlDoc = new XmlDocument(); xmlLocation = applicationLocation + "/Employee.xml"; xmlDoc.Load(xmlLocation); switch (option) { case "1": xmlProg2.AddAddressElement(xmlDoc); break; case "2": XMLHelper.AddEmployee(xmlDoc); break; case "3": XMLHelper.DeleteEmployee(xmlDoc); break; } }