
Component family |
Internet |
|
Function |
tRSSOutput writes RSS_Feed or |
|
Purpose |
tRSSOutput makes it possible to |
|
Basic settings |
File name |
Name or path to the XML file to be processed and/or the variable For further information about how to define and use a variable in |
|
Encoding |
Select an encoding type from the list, or select Custom and define it manually. This field |
|
Append |
Select this check box to add the new rows to the end of the |
|
Mode |
Select between RSS or ATOM according to the feed you want to |
|
Channel (in RSS mode) |
NoteThe information to be typed in here concerns your entire input Title: Enter a meaningful
Description: Enter a description
Publication date: Enter the
Link: Enter the relevant |
|
Feed (in ATOM mode) |
Title: Enter a meaningful
Link: Enter the relevant
Id: Enter the valid URL
Update date: Enter the relevant
Author name: Enter the relevant |
|
Optionnal Channel Elements |
Click the [+] button below the table to add new lines and enter Element Name: name of the metadata.
Element Value: content of the |
|
Schema and Edit |
A schema is a row description, it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
By default, the schema of tRSSOutput is made of five read-only columns: |
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables |
ERROR_MESSAGE: the error message generated by the NB_LINE: the number of rows read by an input component or 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 |
This component must be linked to an input or intermediary |
|
Limitation |
n/a |
In this scenario we:
-
create an RSS flow for files that you would like to share with other people,
and -
store the complete files on an FTP server.
This scenario writes an RSS feed XML file about a Mysql table holding information
about books. It adds links to the files stored on an FTP server in case users want to
have access to the complete files.
-
Drop the following components from the Palette onto the design workspace:
tMysqlInput, tRSSOutput, and
tFTPPut. -
Right-click tMysqlInput and connect it to
tRSSOutput using a Row > Main
link. -
Right-click tMysqlInput and connect it to
tFTPPut using a Trigger > OnSubjobOk
link.
-
In the design workspace, select tMysqlInput, and click the Component tab to define the basic settings for tMysqlInput.
-
Set the Property type to Repository and click the three-dots
button […] to select the relevant DB
entry from the list. The connection details along with the schema get filled
in automatically. -
In the Table Name field, either type your
table name or click the three dots button […] and select your table name from the list. In this
scenario, the Mysql input table is called “rss_talend” and the schema is
made up of four columns, TITLE,
Description, PUBDATE, and
LINK. -
In the Query field, enter your DB query
paying particular attention to properly sequence the fields in order to
match the schema definition, or click Guess
Query.
-
In the design workspace, select tRSSOutput, and click the Component view to define the basic settings for tRSSOutput.
-
In the File name field, use the by
default file name and path, or browse to set your own for the output XML
file. -
Select the encoding type on the Encoding Type
list. -
In the Mode area, select RSS.
-
In the Channel panel, enter a title, a
description, a publication date, and a link to define your input data as a
whole. -
Click Edit Schema to modify the schema if
necessary.Note
You can click Sync columns to
retrieve the generated schema from the preceding component. -
Save your Job and press F6 to execute
this first part.The tRSSOutput component created an
output RSS flow in an XML format for the defined files.
To store the complete files on an FTP server:
-
In the design workspace, select FTPPut,
and click the Component tab to define the
basic settings for tFTPPut. -
Enter the host name and the port number in their corresponding
fields. -
Enter your connection details in the corresponding Username and Password
fields. -
Browse to the local directory, or enter it manually in the Local directory field.
-
Enter the details of the remote server directory.
-
Select the transfer mode from the Transfer
mode list. -
On the Files panel, click on the plus
button to add new lines and fill in the filemasks of all files to be copied
onto the remote directory. In this scenario, the files to be saved on the
FTP server are all text files. -
Save your Job and press F6 to execute
it.Files defined in the Filemask are copied on the remote server.
This scenario describes a two-component Job that creates an RSS flow that holds
metadata and then redirects the obtained information in an XML file of the output RSS
flow.
-
Drop tRSSInput and tRSSOutput from the Palette
to the design workspace. -
Connect the two components together using a Row > Main link.
-
Double-click tRSSInput to open its
Basic settings view and define the
component properties. -
Enter the URL for the RSS_Feed to access. In this scenario, tRSSInput links to the Talend RSS_Feed: http://feeds.feedburner.com/Talend.
-
In the design workspace, double-click tRSSOutput to display its Basic
settings view and define the component properties. -
In the File name field, use the by
default file name and path, or browse to set your own for the output XML
file. -
Select the encoding type on the Encoding Type
list. -
In the Mode area, select RSS.
-
In the Channel panel, enter a title, a
description, a publication date and a link to define your input data as a
whole. -
In the Optional Channel Element, define
the RSS flow metadata. In this example, the flow has two metadata:
copyright, which value is tos,
and language which value is en_us. -
Click Edit Schema to modify the schema if
necessary.Note
You can click Sync Column to retrieve
the generated schema from the preceding component.
This scenario describes a two component Job that generates data and writes them in an
ATOM feed XML file.
-
Drop the following components from the Palette onto the deisgn workspace: tFixedFlowInput of the Misc
component group and tRSSOutput of the
Internet component group. -
Right-click tFixedFlowInput and connect
it to tRSSOutput using a Row Main link. -
When asked whether you want to pass on the schema of tRSSOutput to tFixedFlowInput, click Yes.
-
In the design workspace, double-click tFixedFlowInput to display its corresponding Component view and define its basic
settings. -
In the Number of rows field, leave the
default setting to 1 to only generate one
line of data. -
In the Mode area, leave the Use Single Table option selected and fill in the
Values table. Note that the Column field of the Values table is filled in by the columns of the schema
defined in the component. -
In the Value field of the Values table, type in the data you want to be
sent to the following component. -
In the design workspace, double-click tRSSOutput to display its corresponding Component view and define its basic settings.
-
Click the […] button next to the
File Name field to set the output XML
file directory and name. -
In the Mode area, select ATOM to generate an ATOM feed XML file.
Warning
As the ATOM feed format is strict, some default information is
required to create the XML file. So, the schema tRSSOutput contains default columns that will contain
those information. Those default columns are greyed out to indicate that
they must not be modified. If you choose to modify the schema of the
component, the ATOM XML file created will not be valid. -
In the Feed area, enter a title, link,
id, update date, author name to define your input data as a whole.