August 15, 2023

Restructuring products data using multiple loop elements – Docs for ESB 6.x

Restructuring products data using multiple loop elements

The following scenario creates a four-component Job that restructures the products data
from an XML source file ProductsIn.xml using multiple
loop elements.

txmlmap-multiloop3.png

These four components are:

  • tFileInputXML: reads the source products data and passes
    it to the tXMLMap component.

  • tXMLMap: transforms the input flow to the
    expected structure streamlined.

  • tLogRow: presents the execution result on the
    console.

  • tFileOutputXML: writes the output flow into an XML
    file.

The content of the source XML file ProductsIn.xml is as
follows:

The objective of this scenario is to restructure the products data to streamline the
presentation of the products information to serve the manufacturing operations. The expected
output data is as follows. The root element is changed to manufacturers, the sales information is consolidated into the sale element, and the manufacturer element is reduced to one single level.


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