public static void LoadFileToXmlDoc(string filePath, string password, out XmlDocument xmlDoc) { if (File.Exists(filePath)) { xmlDoc = AESManager.DecryptFileToXmlDocument(filePath, password); } else { xmlDoc = CreateEntryXmlDocument(); } Console.WriteLine(xmlDoc.InnerXml); }