xml spy
Previous  Top  Next
Add External Folder to Project...

This command adds a new external folder to the current project.

Use this command to add a local or network folder to the current project. You can also access this command from the context-menu when you right-click a folder in the project window.

To add an external folder to the project
1.Select the menu option Project | Add External Folder to project.  
2.Select the folder you want to include from the "Browse for Folder" dialog box, and click OK to confirm.  

43_proj_browse_folder  
 
The selected folder now appears in the project window.  

43_proj_folder  

3.Click the plus icon to view the folder contents.  

43_proj_fold1  

To filter the folder contents:

1.Right click the local folder, and select the popup menu option Properties.  
This opens the Properties dialog box.  

43_fold2  

2.Click in the File extensions field and enter the file extensions of the file types you want to see. You can separate each file type with a semicolon to define multiple types (XML and Schema XSDs in this example).  
3.Click OK to confirm the selection.  

43_fold3  

The Project window now only shows the XML and XSD files of the tutorial folder.  

Validating and checking a folder for well-formedness:
Having selected the file types you want to see or check, from the external folder,
1.Click the folder and click the "Check well-formedness" or "Validate" icon, (hotkeys F7 or F8).  
All the files visible under the folder are checked.  

43_fold_valid  

If a file is malformed or invalid, then this file is opened in the main window, allowing you to edit it. In this case the CompanyLast file is opened because the PhoneExt value does not match the facet defined in the underlying schema file. This schema only allows only two digit numbers.

43_fold_valid2  

2.Correct the error and restart the process to recheck the rest of the folder.  

Please note  
You can select discontinuous files in the folder, by holding down CTRL and clicking the files singly. Only these files are then checked when you click F7 or F8.  

To update the project folder contents:

You might add or delete files in the local or network directory at any time. To update the folder view,
·Right click the external folder, and select the popup menu option Refresh external folder.  

Deleting files or folders:
·Right click a folder and hit the Del. key, to delete the folder from the Project window. This only deletes the folder from the Project view, and does not delete anything on your hard disk or network.  
·Right clicking a single file and hitting Del. does not delete a file from the Project window. You have to delete it physically and then Refresh the external folder contents.  

Previous  Top  Next

⌐ 2002 Altova