|Previous Top Next|
The File tab defines the way XMLSpy opens and saves documents. Related settings are in the Encoding tab.
Open/New file in Grid view
You can choose to open an existing file or create a new file either in Grid View or in Text View. If you select Grid View, you can also choose to automatically expand all lines.
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.
When you start XMLSpy, you can open the last-used project automatically.
When saving an XML document, XMLSpy includes a short comment <!-- Edited with XMLSpy http://www.altova.com --> 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.
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:
After making the settings, click OK to finish and close the Options dialog.