Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serializing / unserializing recursive objects
Message
From
25/07/2005 11:58:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Serializing / unserializing recursive objects
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01035740
Message ID:
01035740
Views:
82
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
Next
Reply
Map
View

Click here to load this message in the networking platform