The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TDataTable
Declaration: procedure WriteToXMLStream (OutStream: TStream; CreateHeader: boolean; Precision: integer; DataID: string);

The method WriteToXMLStream writes the contents of the data table to the stream OutStream using XML syntax. If the parameter CreateHeader is TRUE a minimum XML header is generated. CreateHeader should be set to a FALSE value if the data is to be appended to an existing XML file. The parameter Precision controls the number of decimal places used to store numeric data. The parameter DataID holds a unique identifier which is stored as the attribute "id " of the <datatable> tag.

Hint: For a sample XML file, see the description of the method SaveAsXMLFile.

Last Update: 2014-Sep-11