The "File" tab defines the way XML Spy opens and saves XML documents. You can also find related settings 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 the Enhanced Grid View or in the text view. If you select the grid view, you can optionally show the tree structure, and automatically expand all lines at the same time.
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 instruct XML Spy to watch for changes to the files that you are currently editing. XML Spy will then prompt you to reload the file, whenever a change is detected.
Validation
If you are using document type definitions (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.
XML Spy 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).
Project
When you start XML Spy, you can open the last-used project automatically.
Save File
XML Spy uses TAB-characters (0x09) to indent the individual elements forming the structure of the XML document. In certain situations this may be undesirable. Deactivate the "Indent elements using tabs" check box, if this is the case.
No formatting output for
You can selectively turn off output formatting for certain elements, by entering them in the list box (e.g. necessary for xsl:attribute when you are editing XSL Stylesheets).
When saving an XML document, XML Spy includes a short comment <!-- Edited with XML Spy 4.x http://www.xmlspy.com --> near the top of the file. This option can only be deactivated by licensed users.
When saving a content model diagram (using the menu option Schema design | Generate Documentation), XML Spy includes a comment <!-- Generated with XML Spy 4.x Schema Editor - http://www.xmlspy.com -->) at the bottom of the diagram. This option can only be deactivated by licensed users.
Line breaks
Line-breaks in the document file can be preserved so that the same characters will be used that were found when opening the file. You can choose to encode line breaks in any of the three possible forms (CR&LF for PCs, CR for the MacOS, or LF for Unix).
Previous
Top
Next