Please enable JavaScript to view this site.

 

Navigation: Scripts > XML

The XML Script Editor

Scroll Prev Up Next More
The XML Scripts Editor is a dialog that contains two side-by-side xml script viewers, and is used to copy complex data structures between scripts or within the same script.

 

The script on the left (source) is used to modify the script on the right (target), and it is the script on the right which is saved back.

 

The XML Scripts Editor can be launched either from the main window, in which case the current script appears on the right as the script that will be modified, or from the scripts explorer, when 1 or 2 scripts are selected (you can then choose which of the scripts will be modified).

 

The XML Scripts Editor User Interface

 

the XML Editor's popup menu

the XML Editor's popup menu

The user interface of the 2 halves of the XML Scripts Editor is almost exactly the same as that of the basic XML Script Viewer.

 

Notably the tree buttons and search bar on each side, work in the same manner as they do in the XML Script Viewer.

 

The popup menu of the XML Scripts Editor allows you to copy elements of the currently selected XML node, to either the source or target search box.

 

The Search Box

 

Entering text in the search box of either side's script viewer displays a list of all matches anywhere in the script for that text, as can be seen in the image on the right

 

Clicking on any of the results selects the XML node from which that result came form.

 

The Collapse/Expand Buttons

 

At the top right of each script viewer are 3 buttons which can be used to fully collapse all the node of the current script, or fully collapse the current node and its children, or finally to fully expand the current node and its children.

 

The Replace Button

 

The Replace button is enabled, whenever compatible options are selected in both XML files, allowing you to copy the entire selection from the left to the right, Target, script.

 

The Replace button can be used to replace, not only scriptlines, but also individual scriptline properties down to the most specific details,

 

The Insert Button

 

The Insert button is enabled, whenever scriptlines are selected in both XML files and the type of scriptline selected on the left can be inserted under or after the scriptline selected on the right.

 

The Insert button can only be used to insert scriptlines as the number of scriptline properties as the number of scriptline properties and the options therein are fixed (not like a script which can have a varying number of scriptlines).

 

The Overwrite the Target Script Button

 

As mentioned above, the effect of the Overwrite the Target Script button is immediate, and irreversible, when the XML Scripts Editor is launched from the Scripts Explorer.

 

But, when the XML Scripts Editor is launched from the Main Window, then the effect of the Overwrite the Target Script button is on the current script, which is displayed in the script editor, meaning that you can still choose not to save the current script, if you are not happy with the changes.

 

Scripts Manipulations

 

There are 2 types of XML scripts manipulations.

 

Replacement of some of the values in a script.

Copying complex data structures between scripts or within the same script.

For a description of the various identifiers used, see the appendix on xml identifiers.

 


Topic 182920, last updated on 08-Sep-2026