Configuring the input components - 6.4

MOM

author
Talend Documentation Team
EnrichVersion
6.4
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 Open Studio for MDM
Talend Real-Time Big Data Platform
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
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the tFileList component to open its Basic settings view.
  2. 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.
  3. 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.
  4. Double-click the tFileInputXML component to open its Basic settings view.
  5. Click the [...] button next to Edit schema to open the [Schema] dialog box.
  6. 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.
  7. 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.
  8. 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.