Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Screenshots updated

...

This field is used to bind an XSD schema to the configuration as an attribute for the Configurations element as shown in the following screenshot.

Image RemovedImage Added

Note that this location should be used with the same schema assigned as the configuration above.

...

Once an XML element has been specified, all mandatory child elements of that element will be automatically added to the configuration and shown in the left hand pane of the editor as shown in the following screenshot:

Image RemovedImage Added

The right hand pane of the editor shows:

...

Optional child elements can be listed by right-clicking on an element and then selecting the required child from the list of available options as shown in the next screenshot:

Image RemovedImage Added

A Simple Configuration

The next screenshot shows a simple but complete configuration that will download a series of files from our online test FTP server and write them to the local file system.

Image RemovedImage Added

Note that starting point for the processing of this configuration is the Profile element which specifies that:

...

Code Block
titleSimple file transfer configuration in XML format
collapsetrue
<?xml version="1.0" encoding="utf-8"?>
<Configurations><Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Fragments>
    <ProtocolFragments>
      <FTPFragment name="ftp_demo_sos-berlin">
        <BasicConnection>
          <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
        </BasicConnection>
        <BasicAuthentication>
          <Account><![CDATA[demo]]></Account>
          <Password><![CDATA[demo]]></Password>
        </BasicAuthentication>
      </FTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="ftp_server_2_local">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <FTPFragmentRef ref="ftp_demo_sos-berlin" />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                <FilePathSelection>  <FileSpec><![CDATA[.*]]></FileSpec>
                  <FilePath><<Directory><![CDATA[./]]></FilePath>Directory>
                </FilePathSelection>FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[C:\Users\aa${USERPROFILE}\jade_demo\a]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
  </Profiles>
</Configurations>
Code Block
titleSimple file transfer configuration in settings.ini format
collapsetrue
 [protocol_fragment_ftp@ftp_demo_sos-berlin]
protocol                            = ftp

host                                = test.sos-berlin.com
user                                = demo
password                            = demo

[ftp_server_2_local]
operation                           = copy

source_include                      = protocol_fragment_ftp@ftp_demo_sos-berlin
file_path spec                           = .*
source_dir                          = ./

target_protocol                     = local
target_dir                          = C:\Users\aa\${USERPROFILE}\jade_demo\a

Automatic Configuration Validation

...

The plugin can be configured using the Settings shown in the screenshot below:

Image RemovedImage Added

 

  • XSD Schema:allows an alternative schema to be used for the conversion as that specified for in the current XML Editor tab.
  • Autosave output file:: automatically saves the converted file under the same file name as the 'original' XML file but with the extension .ini.
  • Show notification on autosave:: shows a small notification window at the taskbar when a file is autosaved.
  • Convert:: is used to convert conversion of an XML file in addition to the automatic conversion of the configuration which is open in the XML Editor is saved.
  • Open INI file:: opens the converted file in the default editor for .ini format.

...