Component family |
XML or File/Output |
|
Function |
tFileOutputXML outputs data to an If you have subscribed to one of the Talend solutions with Big Data, you are |
|
Purpose |
tFileOutputXML writes an XML file |
|
Basic settings |
File name |
Name or path to the output file and/or the variable to be used. Related topic: see Defining variables from the Component view |
Incoming record is a document |
Select this check box if the data from the preceding component is When this check box is selected, a Column When this check box is selected, in the Advanced settings view, only the check boxes |
|
|
Row tag |
Specify the tag that will wrap data and structure per row. |
|
Schema and Edit |
A schema is a row description, it defines the number of fields Click Edit schema to make changes to the schema. If the
|
|
|
Built-in: The schema will be |
|
|
Repository: The schema already |
Sync columns | Click to synchronize the output file schema with the input file schema. The Sync function only displays once the Row connection is linked with the input component. |
|
Advanced settings | Split output in several files |
If the output is big, you can split the output into several files, Rows in each output file: Specify |
Create directory if not exists | This check box is selected by default. It creates a directory to hold the output XML files if required. |
|
Root tags | Specify one or more root tags to wrap the whole output file structure and data. The default root tag is root. |
|
Output format |
Define the output format. Column: The columns retrieved As attribute: select check box NoteIf the same column is selected in both the Output format table as an attribute Use schema column name: By |
|
|
Use dynamic grouping |
Select this check box if you want to dynamically group the output Column: Select a column you want Attribute label: Enter an |
Custom the flush buffer size |
Select this check box to define the number of rows to buffer Row Number: Specify the number of |
|
Advanced separator (for numbers) |
Select this check box to modify the separators used for numbers: Thousands separator: define Decimal separator: define |
|
|
Encoding |
Select the encoding from the list or select Custom and |
Don’t generate empty file | Select the check box to avoid the generation of an empty file. |
|
Trim data |
Select this check box to remove the spaces at the beginning and at |
|
tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a Job level as well as at each component level. |
|
Global Variables |
ERROR_MESSAGE: the error message generated by the NB_LINE: the number of rows processed. This is an After A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
Use this component to write an XML file with data passed on from |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
Warning
The information in this section is only for users that have subscribed to one of
the Talend solutions with Big Data and is not applicable to
Talend Open Studio for Big Data users.
In a Talend Map/Reduce Job, tFileOutputXML, as well as the whole Map/Reduce Job using it, generates
native Map/Reduce code. This section presents the specific properties of tFileOutputXML when it is used in that situation. For further
information about a Talend Map/Reduce Job, see the Talend Big Data Getting Started Guide.
Component family |
MapReduce/Output |
|
Basic settings |
Property type |
Either Built-in or Repository. |
|
|
Built-in: No property data stored |
|
Click this icon to open a database connection wizard and store the database connection For more information about setting up and storing database connection parameters, see |
|
|
|
Repository: reuse properties The fields that come after are pre-filled in using the fetched For further information about the Hadoop |
|
Row tag |
Specify the tag that will wrap data and structure per row. |
|
Schema and Edit |
A schema is a row description, it defines the number of fields Click Edit schema to make changes to the schema. If the
|
|
|
Built-in: The schema will be |
|
|
Repository: The schema already |
|
Folder |
Browse to, or enter the directory in HDFS where the data you need to use is. This path must point to a folder rather than a file, because a Note that you need |
Action |
Select an operation for writing data: Create: Creates a file and write Overwrite: Overwrites the file |
|
Advanced settings | Root tags | Specify one or more root tags to wrap the whole output file structure and data. The default root tag is root. |
Output format |
Define the output format. Column: The columns retrieved As attribute: select check box NoteIf the same column is selected in both the Output format table as an attribute Use schema column name: By |
|
|
Use dynamic grouping |
Select this check box if you want to dynamically group the output Column: Select a column you want Attribute label: Enter an |
|
Encoding |
Select the encoding from the list or select Custom and |
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
In a Talend Map/Reduce Job, it is used as an end component and requires Once a Map/Reduce Job is opened in the workspace, tFileOutputXML as well as the MapReduce Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
|
Hadoop Connection |
You need to use the Hadoop Configuration tab in the This connection is effective on a per-Job basis. |
For related scenarios using tFileOutputXML, see Scenario 1: From Positional to
XML file and Scenario 2: Using a SOAP message from an XML file to get country name information and
saving the information to an XML file.