Skip to end of metadata
Go to start of metadata

Scope

  • The XML Editor can export an XML configuration as used for YADE 1.11 to a compatible .ini format as used for YADE 1.10 and earlier.
  • The following examples have been created by use of the XML Editor

Prerequisites

The XML Editor feature for exporting compatible configuration files makes use of a Java based Plugin.

  • Use of this feature requires a Java Run-Time Environment starting from version 1.8 to be available.

Configuring the XML Editor

Activating the YADE Xml2Ini Converter Plugin

The XML Editor comes with a sub-folder plugins in the installation directory.

  • By default all Plugins that are deployed with this folder are available with the XML Editor. Therefore the Xml2Ini Converter is active by default.
  • Should the sub-folder plugins not be available, e.g. should this folder have been renamed, then you cannot use the conversion feature. 
  • If the Xml2Ini Converter is available then you can use the respective operation from the main menu and from the tab context menu.
    • The XML Editor shows a file dialog and suggests an .ini export file with the same basename as the current .xml configuration file.

Configuring the XML Editor for automated Conversion

The XML Editor comes with the feature to auto-save configuration files in the .ini format when saving to the .xml format, i.e. doing the conversion automatically.

  • To activate this feature adjust the check-box "Autosave ini file" to be checked. We recommend to use this feature if you want to create compatible .xml and .ini configuration files for YADE releases 1.10 and 1.11. 
    • This allows to manage configurations for YADE 1.11 in XML format and to have a parallel .ini file being created for use with YADE 1.10. Keeping both .xml and .ini configuration files in sync will allow a smooth migration to YADE 1.11 - as long as you would not manually modify the .ini file.
    • In autosave mode the .ini file will be overwritten whenever the .xml file is saved.
  • In addition you can enable desktop notifications to be created if a .ini file is being saved.

 

Assigning the YADE XSD Schema

When creating a new XML configuration file then the following dialog appears for schema assignment:

For YADE configuration files please assign the XSD Schema that matches your YADE release:

The schema will be accessed by the XML Editor when validating, saving and converting files. The following operations for schema assignment  for existing files are available from the tab context menu:

  • Reload schema: reload and apply the current XSD schema.
  • Reassign schema: open the assignment dialog and assign an XSD schema.

Examples

Getting Started

XML Configuration File: getting_started.xml  Expand source
Flat File Configuration: getting_started.ini  Expand source

Simple File Selection

XML Configuration: simple_file_selection.xml  Expand source
Flat File Configuration: simple_file_selection.ini  Expand source

More Advanced File Selection

XML Configuration: more_advanced_file_selection.xml  Expand source
Flat File Configuration: more_advanced_file_selection.ini  Expand source

File Transfer

XML Configuration: file_transfer.xml  Expand source
Flat File Configuration: file_transfer.ini  Expand source

Checking Files for Completenss

XML Configuration: checking_files_for_completeness.xml  Expand source
Flat File Configuration: checking_files_for_completeness.ini  Expand source
  • No labels