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



LoadFromXMLFile


Unit: SDL_datatable
Class: TDataTable
Declaration: function LoadFromXMLFile (FName: string; DataID: string): boolean;

The function LoadFromXMLFile reads the data from the file FName. If the parameter DataID is empty, the first <datatable> tag is evaluated and read into the data structure. If DataID is not empty, the entire file is read until a <datatable> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not case-sensitive). The function LoadFromXMLFile returns TRUE if both a valid starting tag <datatable> and a valid end tag </datatable> has been found.



Last Update: 2014-Sep-11