Home MathPack Matrix Classes TIntMatrix, TMatrix and TMat3D Methods LoadFromXMLFile |
|
See also: ReadFromOpenXMLFile, DataID, ReadFromXMLStream, SaveAsXMLFile, WriteToOpenXMLFile, WriteToXMLStream, TMatXmlTag, DataID (Mat4D) |
|
LoadFromXMLFile |
 |
Unit: | SDL_matrix | Class: | TMatrix, TIntMatrix, TMat3D | Declaration: | function LoadFromXMLFile (FName: string; DataID: string): boolean; |
The function LoadFromXMLFile reads a matrix from the file FName. If the parameter DataID is empty, the first <matrix> tag is evaluated and read into memory. If DataID is not empty, the entire file is read until a <matrix> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not
case-sensitive). The property DataID is set to
the identification string of the XML data source. The function LoadFromXMLFile returns TRUE if both a valid starting tag <matrix> and a valid end tag </matrix> has been found and the matrix has been updated. In this case the OnChange event is triggered.
Hint 2: |
The XML description of the matrix data has to follow a certain order: number of columns and rows have to precede all other data. |
|