6.1. The URL chooser dialog box

The URL chooser dialog box allows to specify the location of a file or directory on the local file system and, if virtual drive plug-ins have been installed[2], on remote (e.g. HTTP, FTP) or virtual (e.g. Zip) file systems. This file or directory may be an existing one or a file or directory to be created; it depends on the command displaying this dialog box.

This dialog box is available only in XMLmind XML Editor Professional Edition.

This dialog box is similar to the "Open Web Location" dialog box found in many Web browsers. To use it, simply type in its text field the URL (Uniform Resource Locator — see syntax below) of a file or directory.

Now rather than typing an URL, you can select it using a file chooser dialog box:

Browse local files

Allows to choose a local file or directory using the standard file chooser dialog box.

Always works, whatever is specified in the text field.

Browse remote files

Allows to choose a file or directory found on the local file system and, if virtual drive plug-ins have been installed, on remote (e.g. HTTP, FTP) or virtual (e.g. Zip) file systems.

Cannot work if the text field is totally blank. You have to type[3] at least the URL of the initial directory you would like to browse.

Note that the special chooser dialog box displayed after clicking on this button has a simple yet handy, integrated file manager. To use it, simply right-click anywhere on the file list:

Clear

Erases the contents of the text field where the URL is typed.

The dropdown menu next to the Clear button

(Disabled unless virtual drive plug-ins have been installed.)

Instead of erasing the text field, this menu allows to replace its contents by the protocol part of an URL, e.g. "http://", "ftp://", etc. The list of these prefixes depend on which virtual drive plug-ins have been installed.

Moreover, keyboard shortcuts are automatically associated with the prefixes. For example, press Ctrl-H to replace the contents of the text field by "http://".

Specifying the "http://" URL of a document found on a WebDAV server

Assumes that WebDAV virtual drive plug-in has been installed and that the option "Use URL chooser rather than file chooser" has been selected, that is, you see in the tool bar.

Before using the Browse remote files button, make sure to type in the text field the URL of an initial directory which is WebDAV enabled.

Example: you have typed "http://www.acme.com/" as an initial URL. After clicking on the Browse remote files button, you get the following error message: "Cannot connect to http://www.acme.com/: http://www.acme.com/ does not support WebDAV". Try to type the URL of a subdirectory such as "http://www.acme.com/publish/" because, may be in the "www.acme.com" server, directory "/" is not WebDAV enabled, while directory "/publish/" is.

Specifying the "zip://" URL of a document contained in a Zip archive.

Assumes that Zip virtual drive plug-in has been installed and that the option "Use URL chooser rather than file chooser" has been selected, that is, you see in the tool bar.

Most efficient procedure:

  1. Use the "Browse local files" button and select the URL of the .zip file containing the document.

  2. Press Ctrl-Z to convert the "file://" URL to a "zip://" URL (just changes the prefix).

  3. Use the "Browse remote files" button to select the document to be opened inside the .zip file.

Using File|Save As to save a document in a newly created Zip archive

Assumes that Zip virtual drive plug-in has been installed and that the option "Use URL chooser rather than file chooser" has been selected, that is, you see in the tool bar.

Procedure:

  1. Open or create a document and then use File|Save As. For example, let's call this document chapter1.xml.

  2. Select the "file://" URL of an existing or to be created .zip file. Example: file:/C:/temp/documentation.zip.

  3. Press Ctrl-Z to convert the "file://" URL to a "zip://" URL (just changes the prefix). Example: zip:/C:/temp/documentation.zip.

  4. Type the name of the document at the end of the "zip://" URL. Example: zip:/C:/temp/documentation.zip/chapter1.xml.

    Typing zip:/C:/temp/documentation.zip/chapters/chapter1.xml would have worked too. In such case, the chapters/ directory would have been created on the fly.

    Using the chooser dialog box display by "Browse remote files" instead of directly typing "/chapter1.xml" or "/chapters/chapter1.xml" works fine too, even if the .zip file does not exist yet!



[2] A virtual drive plug-in allows XMLmind XML Editor to edit documents stored in places other than the local file system. This is done by emulating a hierarchical file system. For example, the Zip virtual drive plug-in allows to edit documents contained in a Zip archive.

Installed plug-ins can be listed using Help|Plug-ins.

All sorts of add-ons, including virtual drive plug-ins, can be downloaded and installed using Options|Install Add-ons.

[3] Or choose an item from the dropdown menu next to the text field. This menu lists last recently visited URLs.