XML to flat file transformer
Transformer that converts XML documents to flat-file format
Transformer that converts XML documents to flat-file format.
This transformer uses a Spring Batch FlatFileItemWriter to format and write the flat file data.
Number of columns
Number of columns that this XML to flat file transformer has.
Charset
Character set to be used for writing the output data.
Default is UTF-8
.
The supported encodings vary between different implementations of the Java platform, however the following encodings should always be available on any implementation: US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16.
A list of the supported encodings in the Sun/Oracle Java 6 SE runtime environment can be found here.
Additionally, eMagiz contains build-in support for the following two encodings:
- x-UTF-8-BOM (eight-bit Unicode Transformation Format, with byte-order mark)
- x-UTF-16BE-BOM (sixteen-bit UTF, big-endian byte order, with byte-order mark)
Delimiter
The delimiter character.
Any unicode string literals of the form \uXXXX
(where XXXX
is the hexadecimal code of the unicode character) are replaced by the actual unicode character. The tab character, for example, is \u0009
.
Default is a comma.
Use string result
Normally the result of this transformer will be a byte array. By setting this property to true, the result will be a string instead.
Note that using byte arrays has (slightly) better performance and that the charset setting is irrelevant when using a string result.
Default is false.
Line separator
Character(s) used for separating the lines.
Any unicode string literals of the form \uXXXX
(where XXXX
is the hexadecimal code of the unicode character) are replaced by the actual unicode character. A "Linux enter", for example, is \u000A
and a "Windows enter" is \u000D\u000A
.
Defaults to the system property line.separator.
Minimum length
Minimum length for the formatted string. If the result of the formatting is shorter than the minimum, a runtime exception is thrown.
Default is '0', which indicates no minimum length.
Maximum length
Maximum length for the formatted string. If the result of the formatting is longer than the maximum, a runtime exception is thrown.
Default is '0', which indicates no maximum length.
Namespace URI of the XML nodes in the XPath expression.
Optional, but required when namespace prefix is set
Example:
XPath expression : /ns1:one/@type
Namespace prefix : ns1
Namespace URI: http://www.example.org
Namespace prefix of the XML nodes in the XPath expression
Optional, but required when namespace URI is set
Example:
XPath expression : /ns1:one/@type
Namespace prefix : ns1
Namespace URI: http://www.example.org
XPath expression that returns a value (boolean or string) used for filtering the message. In case of a boolean value, true
accepts the message and false
discards it. In case of a string value, this decision depends on the value of the match value and match type settings.
Required
Example:
XPath expression : /ns1:one/@type
Namespace prefix : ns1
Namespace URI: http://www.example.org
Output channel
Channel where output messages should be sent after (successfully) processing the input message.
You can select the nullChannel
here to silently drop the output messages.
Required
Input channel
Channel to consume the input messages from.
Required
Id
Name that uniquely identifies this flow component.
Required