中国开发网: 论坛: Delphi/BCB: 贴子 763495
pcplayer: 几个可以把对象序列化为XML的库
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.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录