XML Generator component RRTs
Component RRT ID
Component RRT ID is XMR.
Reserved Replacement Tag Names (RRTN)
RRTN | Description |
---|---|
FileName | The file name of the original document without extension. |
XMLFileName | The generated file name for following components. |
FileExt | The file extension of the original document. |
Counter | An incremental counter based on the duplicate file names found within the output directory. The counter value concatenated with the name provides a unique file name. |
FilePath | The file path to the original documents. This RRT applies to the XML Generator eConnector component only. It is available only for the subsequent components in the workflow. |
XMLFilePath | The file path of the generated XML document. This applies to the XML Generator eConnector component only. It is available only for the subsequent components in the workflow. |
Field Replacement Tag Names (FRTN)
FRTN | Description |
---|---|
FileContentindex | Base64 encoded content of the original document, by index.
Example: |
FileNameindex | The file name without extension and path, by index.
Example: |
FileExtindex | The file extension of the original document by index.
Example: |
If XML Generator receives a batch of several files on input, index will be replaced by the number of a file in the batch. If there is only one file in the input, index is replaced by 1.
Special Set Replacement Tag Names (SSRTN)
Name | Description |
---|---|
%a | Abbreviated English weekday name (Sun – Sat) |
%A | Full English weekday name (Sunday – Saturday) |
%b | Abbreviated English month name (Jan – Dec) |
%B | Full English month name (January – December) |
%d | Day of month as 2-digit decimal number (01 – 31) |
%H | Hour in 24-hour format (00 – 23) |
%I | Hour in 12-hour format (01 – 12) |
%j | Day of year as decimal number (001 – 366) |
%m | Month as decimal number (01 – 12) |
%M | Minute as decimal number (00 – 59) |
%p | Current locale’s A.M./P.M. indicator for 12-hour clock |
%S | Second as decimal number (00 – 59) |
%U | Week of year as decimal number, with Sunday as first day of week (00 – 53) |
%w | Weekday as decimal number (0 – 6; Sunday is 0) |
%W | Week of year as decimal number, with Monday as first day of week (00 – 53) |
%y | Year without century, as decimal number (00 – 99) |
%Y | Year with century, as decimal number |
Examples of Component RRT Usage
If the component receives the batch of three files: Test1.pdf, Test2.pdf, Test3.pdf, the FRTN will be replaced as follows:
FRTN string | Run-time replacement |
---|---|
~XMR::FileName1~ |
Test1 |
~XMR::FileName2~ |
Test2 |
~XMR::FileName3~ |
Test3 |
~XMR::FileName~~XMR::Counter~
will be replaced with the value MyDoc5.xml if the name of the original
file is MyDoc.tif, and there are up to 4 (MyDoc1.xml to MyDoc4.xml) files
already within the destination folder path.
~XMR::%Y~-~XMR::%m~
will be replaced by 2011-03.
~XMR::Counter~
, ~XMR::FilePath~
and
~XMR::XMLFilePath~
can be used in the output XML file configuration.