Subject: Storing and loading XMPP Messages
When there is no connection available i want to store messages in a queue (which can be on the server or client). The messages in the queue are written to the file system to make sure that messages still remain when the server or client are switch off.
Storing XMPP Messages in not the problem. Just write the XML to the file system. The problem is loading the message and restoring the Message objects. I have a xml string which cannot be added as property of the constructor. What is the best way of creating a message from an xml string?
Should i use a XmlDocument and loop trough all the elements to read out all the different properties which can be used for a Message object of the agsXMPP library?
Storing XMPP Messages in not the problem. Just write the XML to the file system. The problem is loading the message and restoring the Message objects. I have a xml string which cannot be added as property of the constructor. What is the best way of creating a message from an xml string?
Should i use a XmlDocument and loop trough all the elements to read out all the different properties which can be used for a Message object of the agsXMPP library?