Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serializing / unserializing recursive objects
Message
De
25/07/2005 11:58:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Serializing / unserializing recursive objects
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01035740
Message ID:
01035740
Vues:
83
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
Fil
Voir

Click here to load this message in the networking platform