Information générale
Catégorie:
Programmation Orientée Object
Titre:
Serializing / unserializing recursive objects
Versions des environnements
Hello,
I am looking for a way to serialize recursive/compound objects, that is, objects whose properties are objects themselves and so on (but with no circular reference).
I did a research here, and in almost all threads about this it was recommended to use Rick Strahl's wwXML class, with the methods ObjectToXML and XMLToObject - which I did. But while ObjectToXML can serialize recursive objects (with the property lRecurseObjects set to .T.), I have found no way of recreating the object using the XMLToObject method. Indeed, the documentation of the nCreateDataStructure property seems to suggest that only flat objects can be unserialized.
Did I miss something ? Or is there another way to serialize objects which takes recursive objects into account ?
Thank you for the help,
David
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement