Configuring the tXMLMap component - Cloud - 8.0

ESB REST

Version
Cloud
8.0
Language
English
Product
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 Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > ESB components > ESB REST components
Data Quality and Preparation > Third-party systems > ESB components > ESB REST components
Design and Development > Third-party systems > ESB components > ESB REST components
Last publication date
2024-02-20

Procedure

  1. Double-click tXMLMap in the design workspace to open the Map Editor.
  2. Click the [+] button on the top right to add an output and name it as Json_post.
  3. Click the [+] button on the bottom right to add two columns for the output.
    Name the first column as body and set the Type to Document.
    Name the second column as string and set the Type to String.
  4. Right-click on the root node, and select As loop element.
  5. Right-click on the root node, and select Create Sub-Element to create a sub-element. Name the sub-element name in the popup dialog box.
  6. Repeat the previous step to create sub-element price.
  7. Select the name column of the input table to the left and drop it onto the name node of the output table to the right.
  8. Repeat the previous step to map the input and the output tables as shown above.
  9. Click the wrench icon on the top of the output table to open the setting panel.
  10. Set the All in one feature as true, this way all XML data is outputted in one single flow.
  11. Click OK to save the settings.
  12. Right-click the tXMLMap component and select Row > Json_post to link to the tRESTClient component.