Skip to Content
0
Former Member
Sep 19, 2005 at 12:08 PM

Multiple lines in a Output XML message

190 Views

Hi all,

I am currently implimenting a simple scenario of creating a file in a particular format using XI.The working scenario is that we get an XML message from BO which will be mapped to the required format of the file.But for testing we are using an hardcoded XML file as the incoming message to XI.

But there is a problem I am facing. The incoming XML message will contain multiple information and this has to be mapped to a header information followed by items.Like for example I have a payment document which has paid some 5 invoices.The incoming XML message will have this information and what I need in the output is to have the invoice information in 5 different lines.

For eg - Assume I have the following structure for incoming message

REGUH

REGUP

....and so on

Here for every REGUH entry we can have mulitple REGUP and also we can have multiple REGUH.

Say my target structure is -

Header Info

Record Info

so for every REGUH and corresponding REGUP combination I will have a Header Info and Record Info.For the next REGUH and corresponding REGUP I will have another Header and Record Info.

I tried testing this in message mapping by duplicating the node REGUH and REGUP but it does not work.I also tried by having the occurances as 1 to n on both sides.It did not seem to work.

Can you guys give some feedback on this.

Thanks..

Sandeep