The function ReadFromXMLStream reads the data from the current position of the stream InStream. If the parameter DataID is empty, the first <matrix> tag is evaluated and read into the matrix. If DataID is not empty, the entire rest of the stream 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 ReadFromXMLStream 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.
|