public void processPersistMsg(XDocument xdoc, Sender sndr, Message msg) { PersistXML <string, List <string> > pe = new PersistXML <string, List <string> >(); pe.createListStringXML(db); Message testMsg = new Message(); testMsg.toUrl = msg.fromUrl; testMsg.fromUrl = msg.toUrl; if (pe.createListStringXML(db)) { testMsg.content = "\n**************************\n" + "\nDatabase persisted successfully : Filename - Project4-Persisted.xml" + "\n"; } else { testMsg.content = "\nDatabase persistance failed"; } //Console.WriteLine(testMsg.content); sndr.sendMessage(testMsg); //srvr.db.showEnumerableDB(); }