2.7. XML Validation

System Designer validates XML files by checking if any Topics used by DataReaders or DataWriters include data types that use unbounded sequences or strings. In future releases, System Designer will also analyze each Entity’s QoS to ensure the required resources are correctly declared.

2.7.1. Automatic Validation

System Designer uses Code Generator to validate the XML files added to a project. This option is disabled by default. When enabled, validation occurs upon opening an existing project and when importing an XML file to an open project. To enable automatic XML validation, go to Projects > Properties > Advanced, then check Enable XML validation when opening or importing a file.

Validation Advanced Property

2.7.2. Manual Validation

2.7.2.1. Single project file

System Designer includes an option to manually validate any XML file against Code Generator. To validate a single file, select the XML view, select the XML file from the list of files in use by the current project, then click the Check with CodeGen button.

Validate XML

Code Generator will validate the code in the file selected in the XML File dropdown. The result is displayed when Code Generator finishes parsing the input file.

Validate XML result

2.7.2.2. All project files

To validate all project files at once, go to Projects > Validate. For details, see Validating Projects.