The hosts.xml file is an XML file on the local client computer that contains the information about all available censhare application servers (hosts) and their connection parameters.

Introduction

A typical hosts.xml file entry looks like this:

<host name="Server-Name" authentication-method="" compressionlevel="0" url="//192.168.1.4/corpus.RMIServer"> 
<proxy use="0"/> 
<censhare-vfs use="1" hidden="1"/> 
</host>

 Find a full description of all parameters of the host.xml entries in Client-server communication customization.

You can edit hosts.xml file in two ways:

  • Open the file in a Text editor or XML editor. There is no DTD for validation, so special care is required to keep the file valid. The hosts.xml file can be found in the local censhare preferences folder, in the release subfolder. The location depends on the operating system. 

  • in the censhare clients, under the Server preferences menu

If you use the hosts.xml file to store access data for a large collection of hosts or groups of hosts, you can visualize these by dividing them with a dummy host entry which creates a separator line:

<host name="-------------------------" url="//separator/corpus.RMIServer" compressionlevel="0" authentication-method="">

<proxy use="0"/>

</host>

You must make these adjustments directly in the hosts.xml file, as the entries cannot be reordered within the user interface dialog of the Server Preferences menu of the censhare clients.

The hosts.xml file can be created once and then distributed among all client computers if desired.

Don´t forget to keep your XML well formed:

<root>
<hosts>
<host ... >
...
</host>
</hosts>
</root>
  • No labels