The Editing section enables you to specify editing behaviour in XMLSpy.
While editing documents, XMLSpy provides intelligent editing based on these settings. You can also customize various aspects of the Entry Helper behavior in this pane. The customization settings made here will be applied when relevant to the file type being edited. For example, the option to load entry helpers on opening the file and sorting attributes will not be applicable to DTD or XQuery documents.
Mandatory child elements of choice groups are auto-appended on the basis of the setting made in this pane. You can select whether (i) the first branch (element) of the choice group, (ii) all branches, or (iii) the branch with the smallest number of descendant elements is generated. Note that the All branches selection could generate an invalid document since only one branch from a choice group is allowed.
The Auto-complete option automatically adds unambiguous structural components. For example, when the closing angular bracket of the start tag of an element is entered, then the end tag of that element is automatically added if this option is enabled.
In Text View, Auto-completion and entry helpers can be disabled if a file is bigger than the size specified in the Disable Auto-completion... combo box. This is useful if you wish to speed up the editing of large files and can do without the auto-completion feature and entry helpers. If the file size is bigger than that specified for this option, then the Text View context menu contains a toggle command for switching on and off Auto-completion and entry helper use. So you can always switch these editing aids on and off at any time during editing (in the event of files having a size greater than the size specified for this option). If the value specified for this option is smaller than the size of the opened file, locations indicated in error messages will not correctly correspond to the location in Text View.
Default copy to clipboard in grid view as
You can choose the format in which data will be exported to foreign applications using the clipboard. If you select XML-Text, the contents of the clipboard will be formatted and tagged just like the resulting XML file itself. The structured text mode attempts to format the clipboard contents as a table, for use in a spreadsheet or database application. This option does not affect the internal clipboard format that XMLSpy uses for copying and pasting.
You can also control, how XMLSpy decides when to display repeating elements in the Table View.
Save and exit
After making the settings, click OK to finish.
© 2019 Altova GmbH