Documentation Center

Reading XML and Loading the scripts

The steps for reading XML and client script loading in Content Manager are described.

Note the first step in client scripting within Content Manager:

  1. The properties form is loaded from the <client tool>host.exe and the XML form is read from the MetadataConfig.xml file located in the %LOCALAPPDATA%\SDL\InfoShare Client\<HASHKEY>\Config\ClientConfig folder.
  2. For each script element, Just-In-Time (JIT) compilation creates a temporary DLL (%TEMP%/SDL/TRI-GUID-.....DLL) in a separate Client Scripting (CS) Application Domain (AppDomain) inside the default AppDomain. The security settings of the default AppDomain applies also to the CS AppDomain.
  3. In case of compilation errors a script failure message box is raised and the loading of the client script is ended while reading the XML itself is continued.
  4. At successful compilation the script gets loaded and all events are bind to the functions in the assembly.

The following diagram illustrates the loading form process.