Please enable JavaScript to view this site.

Altova XMLSpy 2020 Professional Edition

The File section defines the way XMLSpy opens and saves documents. Related settings are in the Encoding section.



Automatic backup

Files that you are currently editing will be automatically backed up if this option is enabled. You can select a backup frequency from between 5 seconds to 60 seconds in the combo box or enter a custom value up to 300 seconds. For more information, see the section Automatic Backup of Files.


Automatic reload of changed files

If you are working in a multi-user environment, or if you are working on files that are dynamically generated on a server, you can watch for changes to files that are currently open in the interface. Each time XMLSpy detects a change in an open document, it will prompt you about whether you want to reload the changed file.



If you are using DTDs or schemas to define the structure of your XML documents, you can automatically check the document for validity whenever it is opened or saved. During Open and Save operations, you have the option of validating files only if the file-size is less than a size you specify in MB. If the document is not valid, an error message will be displayed. If it is valid, no message will be displayed and the operation will proceed without any notification. XMLSpy can also cache these files in memory to save any unnecessary reloading (e.g. when the schema being referred to is accessed through a URL). If your schema location declaration uses an URL, disable the "cache DTD/Schema files in memory" option to have changes made to the schema appear immediately, and not use the cached version of the schema.


If the On Edit option is selected, then validation will be carried out as you type in Text View and JSON Grid View. The option is selected by default. For more information, see Validation in Text View.


XML Schema Version

The XSD mode that is enabled in Schema View depends on both (i) the presence/absenceand, if present, the valueof the /xs:schema/@vc:minVersion attribute of the XSD document, and (ii) the XML Schema Version option selected in the File section of the Options dialog (Tools | Options, screenshot below).


The following situations are possible. XML Schema Version in the table below refers to the selection in the XML Schema Version pane shown above. The vc:minVersion values in the table refer to the value of the xs:schema/@vc:minVersion attribute in the XML Schema document. For more details, see the section Editing Views | Schema View | XSDMode.


XML Schema Version

vc:minVersion attribute

XSD mode

Always v1.0

Is absent, or is present with any value


Always v1.1

Is absent, or is present with any value


Value of @vc:minVersion

Attribute has value of 1.1


Value of @vc:minVersion

Attribute is absent, or attribute is present with a value other than 1.1




When you start XMLSpy, you can open the last-used project automatically.


Save File

When saving an XML document, XMLSpy includes a short comment <!-- Edited with XMLSpy --> near the top of the file. This option can only be deactivated by licensed users, and takes effect when editing or saving files in the Enhanced Grid or Schema Design View.


When saving a content model diagram (using the menu option Schema design | Generate Documentation), XMLSpy includes the XMLSpy logo. This option can only be deactivated by licensed users.


If a StyleVision Power Stylesheet is associated with an XML file, the 'Authentic: save link to design file' option will cause the link to the StyleVision Power Stylesheet to be saved with the XML file.


Line breaks

When you open a file, the character coding for line breaks in it are preserved if Preserve old is selected. Alternatively, you can choose to code line breaks in any of three codings: CR&LF (for PC), CR (for MacOS), or LF (for Unix).


No output formatting for

In Text View, the indentation of an element can be made to reflect its position in the element hierarchy (see Save File). You can, however, override this indentation for individual elements. To do this, enter the element name in the No output formatting for field. All elements entered in this field will be formatted such that their descendant elements have no whitespace between them (see screenshots).


Hierarchical indentation for all elements:


No output formatting has been specified for element xs:restriction:



Save and exit

After making the settings, click OK to finish.


© 2020 Altova GmbH