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



ReadFromXMLString


Unit: SDL_datatable
Class: TDataTable
Declaration: function ReadFromXMLString (InString: string; var StartAt: integer; DataID: string): boolean;

The function ReadFromXMLString reads the data from the position StartAt of the string InString. 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 string 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 ReadFromXMLString returns TRUE if both a valid starting tag <datatable> and a valid end tag </datatable> has been found.



Last Update: 2023-Dec-14