We would like to export XML for use in other apps from our
Datasets(FIBDataSet).
Can anyone recommend a solution or set of components to acvieve this.
XML Files to be used in a Microsoft environment.
Any comments would be appreciated.
Thanks
Rob
If you need more complex solution, use our SMExport suite:
http://www.scalabium.com/sme
There is the TSMExportToXML component with extended features (for example,
to generate the xml-file with formating for MS SQL database loading).
--
With best regards, Mike Shkolnik
EMail: mshk...@scalabium.com
http://www.scalabium.com
"R A Beckmann" <rob...@duel.co.za> wrote in message
news:4265...@newsgroups.borland.com...
This one http://www.scalabium.com/sme/ looks good for your purpose. I've no
personal experience, but it gets recommended quite a lot.
Regards
Uffe
http://www.simdesign.nl/xml.html
best regards
stefan
Maybe something like this [untested] ... won't work for BLOBS.
Procedure ExportDataSet(ADataSet : TpFIBDataSet; ADestinationFile : string);
var
DataSetProvider: TDataSetProvider;
ClientDataSet: TClientDataSet;
begin
if not(ADataSet.Active) or // must be active to export
(ADataSet.RecordCount < 1) then // or have some records
exit;
DataSetProvider := TDataSetProvider.Create(nil);
try
DataSetProvider.DataSet := ADataSet;
ClientDataSet := TClientDataSet.Create(nil);
try
ClientDataSet.SetProvider(DataSetProvider);
ClientDataSet.Open;
ClientDataSet.SaveToFile(ChangeFileExt(ADestinationFile,'.xml'),
dfXML);
ClientDataSet.Close;
finally
ClientDataSet.Free;
end
finally
DataSetProvider.Free
end;
end;
Regards
Mike
"R A Beckmann" <rob...@duel.co.za> wrote in message
news:4265...@newsgroups.borland.com...