Mapping data using a filter - 7.1

tXMLMap

EnrichVersion
7.1
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
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Processing components (Integration) > tXMLMap
Data Quality and Preparation > Third-party systems > Processing components (Integration) > tXMLMap
Design and Development > Third-party systems > Processing components (Integration) > tXMLMap

Procedure

  1. In your Studio, open the Job used in the previous scenario to display it in the design workspace.
  2. Double-click the tXMLMap component to open its Map Editor.
  3. On the top of the Customer output table, click the button to open the filter area.
  4. Drop the idState node in the main input table to the filter area. The XPath [row1.Customer:/Customers/Customer/Address/idState] of the idState node is added automatically to this filter area.
    Enter == 2 after the XPath of the idState node, and the complete filter condition becomes [row1.Customer:/Customers/Customer/Address/idState] == 2. This means only the customer data with the state id of 2 will be passed to the output flow.
  5. Click OK to validate the changes and close the map editor.
  6. Press Ctrl + S to save the Job and then F6 to run the Job.

Results

As shown above, the customers Griffith Paving and Sealcoatin and Glenn Oaks Office Supplies, whose state id is 2 are displayed on the console.