Creating class objects from an xml document
Posted on 2008-10-23
I am interested to see if anyone knows of a generic solution to creating objects from an xml document.
I have a base object which all my objects inherit from, and currently they can all save themselves as xml with their class type as a node heading, ie TMyObject.
What I want is the ability to go backwards now and create the objects from the xml document, but obviously you cannot create an object directly just from a string. Anyone got an optional idea on a method or techinique I could use to do this?