XML Support
Unit
AstaXMLTools
Description
ASTA now supports XML with functions to save any dataset to XML and then to be able to read that XML
file into a TAstaDataset (in memory dataset). Blobs and memos are supported as they are UUEEncoded. To
be able to reload a DataSet from saved XML the MetaData:Boolean must be set to true when the XML file
is saved to stream or file.
procedure DataSetToXMLStream(D: TDataSet; TableName:
string;
var MS: TStream; Blobs, Memos,MetaData,DTD,AttributeData:
Boolean);
function DataSetToXMLStreamF(D: TDataSet; TableName: string;
Blobs, Memos,MetaData,DTD,AttributeData: Boolean): TMemoryStream;
procedure DataSetLoadFromXML(D: TAstaDataSet; FileName: string);
procedure DataSetLoadFromXML(D: TAstaDataSet; MS: TMemoryStream);