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....



WriteToOpenXMLFile


Unit:SDL_datatable
Class: TDataTable
Declaration: procedure WriteToOpenXMLFile (const OutFile: TextFile; CreateHeader: boolean; Precision: integer; DataID: string);

The method WriteToOpenXMLFile writes the contents of the data table to the open text file OutFile 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