xml spy
Previous  Top  Next
Open...

ic_open

The "Open..." command opens any XML-related document or text file from your PC. The familiar Windows "Open" dialog box appears and allows you to select one or more files.

m_file_open  

Use the "Files of type" combo box to select which kind of files you want to be displayed in the dialog box (the list of available file types can be configured through the File Types tab on the Tools | Options dialog).

After the file has been read into memory, the character-set encoding used within the file will be auto-detected by XML Spy and the file decoded accordingly.
If the character-set used to encode the file, differs from the encoding-specification in the XML-declaration in the prolog, an error message is displayed and the file is automatically opened using the correct encoding.

Auto-checks on opening
You may get an error message if your file is either not well-formed or invalid, and you have selected to perform automatic validation upon opening.

In this case the document will be opened in the appropriate view, an error message popup will be displayed with the details about the error detected, and the offending item will be highlighted in the window.
In such a case simply fix the error and click on the ic_recheck or ic_revalid button to continue opening the file.

Opening Unicode files
If you are using the Windows 95/98 version of XML Spy and have chosen to open a Unicode file, XML Spy converts the file to a Windows 98 code-page to be used for viewing and editing, as Windows 95/98 do not support Unicode on the operating system layer (for further information please see the Unicode chapter in the background information section). The conversion is done automatically according to the settings you provide in the "Encoding" tab of the Tools | Options dialog.

Previous  Top  Next

© 2002 Altova