
Delphi Serialize Tpersistent
This class has been built to serialize any public and published property or Field. This was done to mimic the behavior found in the.NET Xml Serialization with the goal of having a set of objects that can serialize in.NET using Delphi Prism and Win32 using Delphi 2010. Only closest option in Delphi is to stream the component using WriteComponent/WriteComponentRes of TStream/TWriter (used for Form storage as DFM, for example). It can be then read back using.
So, I'd like to find an XML serializer for generic Delphi components, similar to the XmlSerializer used in the.NET FW. The real problem with using binary streaming methods such as Stream's WriteComponent and ReadComponent nominally support similar functionality, it isn't: • User editable • Terribly safe when dealing with multiple versions of components • Very effective at saving the state of nested components (Comp1.Comp2, etc.) While the XML data binding wizard provides similar functionality it has other drawbacks such as: • Forces you to keep an external XML/XSD/etc. File in synch with the code • Tool-generated, so you can't just edit the code, and have to rely on Adapter classes, or a lot of manual editing • Also not great for versioning Generic XML serialization of any object (or TPersistent/TComponent descendant, as is more likely) would be considerably more ideal. I've looked into ObjectBinaryToText as well, but it seems rather fragile and I haven't got it working quite right as of yet. The format is also non-standard; once this is being done, XML makes more sense. I've also poked around in the extensive source soap subdirectory (D6 Enterprise, from work ), but haven't found the magic bullet I'm looking for. Torrent diablo 2 español expansion. If anyone knows of a hidden VCL feature I might be able to adapt, or some set of components which addresses this want of mine, that would be awesome.
Thanks in advance.