Marshalling C++ Objects with XML
By Konstantin Izmailov, April 01, 2002
Marshalling allows a developer to represent C++ objects in XML text format that can be sent over the Net and demarshalled into C++ objects on the recipient site. Konstantin presents a high-performance and flexible marshalling subsystem.
April 2002/Marshalling C++ Objects with XML
Example 3
The CreateInstance function
Marshallable* CSimple::CreateInstance(const char **atts, void *parent) {
CSimple* pTemp = searsh_in_collection(atts);
CSimple* pInst = (pTemp != 0) ? new CSimple(pTemp) : new CSimple;
return pInst;
}