Hello teco049
MVD is knows how to create an XML file;
procedure Form1_Button4_OnClick (Sender: string; var Cancel: boolean);
var Results: TDataSet;
begin
SQLQuery('SELECT FirstName, LastName FROM person', Results);
DataSetToXML(Results, 'd:\1.xml');
Results.Free;
end;
Export via a dialog box :
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var Results: TDataSet;
SaveDialog : TSaveDialog;
begin
SaveDialog := TSaveDialog.Create(Form1);
If SaveDialog.Execute then
Begin
SQLQuery('SELECT FirstName, LastName FROM person', Results);
DataSetToXML(Results,(SaveDialog.FileName + '.xml'));
Results.Free;
end;
end;
JB