Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Delphi-Serialization

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

#Delphi-Serialization Delphi-Serialization provides functionality for serializing and deserializing Objects to (currently only) XML.

Roadmap (rough)

  • more testing
  • more flexibility
  • serialize/deserialize to JSON
  • and more

Project-Dependencies

  • DunitX (Testframework)
  • DSharp
  • Spring4D

Example

delphi
var
  LCustomer: ICustomer;
  LSerializationFacade: TSerializationFacade;
  LOutputCustomer: TStringStream;
begin
  LCustomer := TCustomer.Create;
  LSerializationFacade := TSerializationFacade.Create;
  LOutputCustomer := TStringStream.Create;
  try
    LSerializationFacade.Serialize<ICustomer>(LCustomer, LOutputCustomer);

    //Do something with the serialized xml-string LOutput.DataString
  finally
    FreeAndNil(LOutputCustomer);
    FreeAndNil(LSerializationFacade);
  end;
end;