Sometimes in our development we must export a data from dataset
into different formats like MS Excel, Word, HTML, Text etc. Now
in the Internet we have a new popular format - XML-file. So for
large part of applications we wants to include the possibility of
export into XML, of course. I want to demonstrate the sample of
one procedure for exporting of dataset's data into XML:

procedure DatasetToXML(Dataset: TDataset; FileName: string);

The first Dataset parameter is source dataset with data (your
Table or Query component, or some other third-party dataset). The
second FileName parameter is a name of target XML-file.

PS: I created this simple procedure from own TSMExportToXML
component which have a lot of other useful extensions in export
process. This component is part of shareware SMExport suite for
Delphi/C++Builder so I cutted a part of code and created a
simple procedure for exporting into XML.