
XML Reader
The XML Reader is a set of Modelica classes for reading parameter values from an XML document directly into a Modelica model. The values are read from the XML document during model intialisation which means updates to the XML document can be made without having to recompile the model each time.
Using the wizard provided an XML document model is configured in Dymola that understands the structure of the XML file to be read. This document model is then added to the system model and it contains functions for reading Real and String parameters from the XML document. The document model can be configured to read any XML structure.
To read a value from the XML document and return it as a real scalar in Modelica, the user simply calls a function called readReal that exists within the document model that has been added to the system model.
click on the image to enlarge



Dymola
