[阅读: 909] 2009-10-26 15:39:00
http://stackoverflow.com/questions/368913/whats-a-good-way-to-serialize-delphi-object-tree-to-xml-using-rtti-and-not-cust
http://sourceforge.net/projects/hitxml/
http://code.google.com/p/hitxml/
http://www.omnixml.com/
==========
12 vote down check
You can use the JVCL TJvAppXMLFileStorage component to serialize TPersistent derived classes.
uses
JvAppXMLStorage;
var
Storage: TJvAppXMLFileStorage;
begin
Storage := TJvAppXMLFileStorage.Create(nil);
try
Storage.WritePersistent('', MyObject);
Storage.Xml.SaveToFile('S:\TestFiles\Test.xml');
Storage.Xml.LoadFromFile('S:\TestFiles\Test.xml');
Storage.ReadPersistent('', MyObject);
finally
Storage.Free;
end;
end;
=========================
3 vote down
JVCL's TJvTranslator.ComponentToXML
Link: http://sourceforge.net/project/showfiles.php?group_id=45786&package_id=42327
Licence: Licensed under the Mozilla Public Licence ("MPL") version 1.1
Observation: Seems to do recursive serialization, but the fact that it is clearly intended for "Translation" gives me pause.
===================
3 vote down
Simdesign's NativeXml
Link: http://www.simdesign.nl/xml.html
Licence: € 29,95
Quote: A native Delphi XML parser and writer. Unique feature: Store, read and create any TPersistent object to/from XML directly (see Example5). This is done by iterating through all of the objects' published properties by use of RTTI (runtime type information). This feature is only available for D5 and up.