Name

provider

File Provider — Assigns the contents of files to variables

<provider class="xms.template.provider.FileProvider" > child tags </provider>

Table 43. Attributes for provider tag (for xms.template.provider.FileProvider)

NameDescriptionTypeDefault ValueRequired
nameSets a name for this provider for referenceString any character combinationFile Providerno

Child Tags

File Entry

<file />

Table 44. Attributes for file tag (for xms.template.provider.FileProvider)

NameDescriptionTypeDefault ValueRequired
charsetThe character set encoding of the fileTemplate Freemarker template stringiso-8859-1no
nameThe name of the variable to assign the contents of the file toString any character combinationnoneyes
pathThe path to the fileTemplate Freemarker template stringnoneyes
pollChangesEnables polling for changes in the fileboolean true or falsefalseno
pollIntervalThe interval to poll for changes in the file if polling is enabledint any integernoneno

Example 46. Example configuration for File Provider

Required attributes are marked with a bold typeface

<provider class="xms.template.provider.FileProvider"
      name="name">
    <file charset="charset"
          name="name"
          path="path"
          pollChanges="pollChanges"
          pollInterval="pollInterval" />
</provider>