The File Types section (screenshot below) allows you to customize the behavior of XMLSpy on a per-file-type basis.
Choose a file type from the File Types list box, and then customize the functions for that particular file type as described below.
You can define the file type description and MIME-compliant content type used by Windows Explorer and whether XMLSpy is to be the default editor for documents of this file type.
XMLSpy provides specific intelligent editing features, as well as other features, for different file types. XMLSpy sets the features for a particular file type on the basis of the conformance you set in this option. For example, in the screenshot above, files with the .xqu file extension are set to be conformant to XQuery Update. XMLSpy will therefore open .xqu files with XQuery Update editing support. XMLSpy lets you set the following conformance options: XML, XQuery, ZIP, JSON, Avro, other formats. XML conformance is further differentiated between XML, DTD, and XML Entity file types. JSON conformant files are differentiated according to whether they are plain JSON or Avro Schema. The Avro conformant option invokes support for Avro binary files. A large number of file types are defined with a default conformance that is appropriate for the file type. We recommend that you do not modify these settings unless you are adding a new file type or deliberately wish to set a file type to another kind of conformance.
This group lets you define the default view to be used for each file type. If a particular conformance can be viewed in one view only, then that view is selected by default and view selection is disabled. For example, XQuery Update documents can only be viewed in Text View, so this view is selected by default and view selection is disabled; similarly, Avro conformant documents (Avro binaries) can be viewed only in Grid View.
This check box lets you define whether the Grid View should automatically build tables.
This check box lets you set syntax-coloring for particular file types.
This option enables you to disable automatic validation per file type. Automatic validation typically takes place when a file is opened or saved, or when a view is changed.
Some applications that use XML documents or output generated from XML documents may have problems understanding the short <Element/> form for empty elements defined in the XML 1.0 Specification. You can instruct XMLSpy to save elements in the longer (but also valid) <Element></Element> form.
Specifies whether RaptorXML Server should be used to validate files of the selected file type when the file is opened and saved. For this to work, a RaptorXML Server must be set up and configured.
Adds a new file type to the File types list. You must then define the settings for this new file type using the other options in this tab.
Deletes the currently selected file type and all its associated settings.
After making the settings, click OK to finish.