August 16, 2023

Configuring the tXMLMap component – Docs for ESB 6.x

Configuring the tXMLMap component

  1. Right-click tMysqlInput, hold and
    drag to tXMLMap to connect the two
    components together.
  2. Double-click tXMLMap in the design
    workspace to open the Map Editor.

    use_case-trestrequest1-8.png

  3. Click the [+] button on the top right
    to add an output and name it as ResponseUsers.
  4. 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.
  5. Right-click on the root node, select
    Rename in the list and rename it
    users
  6. Right-click on the users node and
    select Create Sub-Element to create a
    sub-element. Name the sub-element user in the popup
    dialog box.
  7. Right-click on the user node created in the
    previous step and select As loop
    element
    .
  8. Select the id column of the
    row2 table to the left and drop
    it onto the user node of the
    ResponseUsers table to the
    right.

    use_case-trestrequest1-11.png

  9. In the [Selection] dialog box, select
    the Create as attribute of target node
    option and click OK.
  10. Select the firstname and lastname columns of the row2 table to the left and drop it onto the
    user node of the ResponseUsers table to the right.

    use_case-trestrequest1-12.png

  11. In the [Selection] dialog box, select
    the Create as sub-element of target
    node
    option and click OK.
  12. Click the wrench icon on the top of the ResponseUsers table to open the setting panel.

    use_case-trestrequest1-13.png

  13. Set the All in one feature as
    true, this way all XML data is
    outputted in one single flow.
  14. Click OK to save the settings.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x