Configuring the input components - 7.3
MOM
- EnrichVersion
- Cloud
- 7.3
- EnrichProdName
- Talend Big Data
- Talend Big Data Platform
- Talend Data Fabric
- Talend Data Integration
- Talend Data Management Platform
- Talend Data Services Platform
- Talend ESB
- Talend MDM Platform
- Talend Open Studio for Big Data
- Talend Open Studio for Data Integration
- Talend Open Studio for ESB
- Talend Real-Time Big Data Platform
- EnrichPlatform
- Talend Studio
- task
- Data Governance > Third-party systems > Messaging components (Integration) > MOM components
- Data Quality and Preparation > Third-party systems > Messaging components (Integration) > MOM components
- Design and Development > Third-party systems > Messaging components (Integration) > MOM components
Procedure
-
Double-click the tFileList component
to open its Basic settings view.
-
In the Directory field, enter the
path to the directory to read XML files from, or browse to the path by
clicking the [...] button next to the
field.
-
Select Use Glob Expressions as
Filemask check box, add a new line in the Files field by clicking the [+] button, and enter
"*.xml"
as
the file mask so that all XML files in the directory will be used. Keep
all the other settings as they are.
-
Double-click the tFileInputXML
component to open its Basic settings
view.
-
Click the [...] button next to
Edit schema to open the Schema dialog box.
-
Click the [+] button to add a column,
give it a name, message in this
example, and select Document from the
Type list to handle XML format
files. Then, click OK to close the
dialog box.
-
In the File name/Stream field, press
Ctrl+Space to access the global
variable list, and select
tFileList_1.CURRENT_FILEPATH
to
loop on the context files' directory.
-
In in the Loop XPath query fields,
enter
"/"
to define the root as the loop node of the input
files' structure; in the Mapping table,
fill the XPath query column with
"."
to extract all data from context node of the source
files, and select the Get Nodes check
box to build a Document type data flow.