He wanted the following structure as output:
There is a solution where you have to promote property and use XPath in orchestration to do this. I saw this on Stepehen's website. I found another way to achieve same. This new way is even faster.
1) Generate the schema from the original file call it "IN"
-
-
-
-
-
-
-
-
-
-
2) Generate another schema call it OUT
-
-
-
-
-
-
-
3) Use Map1 to populate fields from IN to OUT.
4) The resutlant file will be:
-
-
-
-
5) Now you can drop this file to a folder. This file format is easy to split now.
6) Split it using XML disassembler. Envelope schema will be
7) Create another map that takes input structure as the "split" structure. i,e
8) The output of that map will be of type: (Original type in step 1)
-
-
-
-
-
-
-
-
-
-
9) Now this map will give yu the desired output after completing the mapping.
10) You can put this "second" map in either a "Port" or "Orchestration"