Skip to main content Skip to complementary content

Configuring the tXMLMap component

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, category_url and vendor_url.
  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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!