|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Use of Mapping Node |
« View previous topic :: View next topic » |
Author |
Message
|
javaforvivek |
Posted: Tue Oct 19, 2004 3:00 am Post subject: Use of Mapping Node |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Hi I have an input message as follows:
<Documents>
<Document> -- Multiple Occurrences
<Header>
<H1>header1</H1>
<H2>header1</H2>
</Header>
<Details> -- Multiple Occurrences
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Details>
<Details>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Details>
</Document>
<Document>
<Header>
<H1>header2</H1>
<H2>header2</H2>
</Header>
<Details> -- Multiple Occurrences
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Details>
<Details>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Details>
</Document>
</Documents>
I want output as follows:
<File>
<Line>
<H1>header1</H1>
<H2>header1<H2>
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Line>
<Line>
<H1>header1</H1>
<H2>header1<H2>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Line>
<Line>
<H1>header2</H1>
<H2>header2<H2>
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Line>
<Line>
<H1>header2</H1>
<H2>header2<H2>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Line>
</File>
Can I use Mapping Node here? If yes, then how?
I have done this using Compute Node, but it requires lot of looping.... _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
waugh |
Posted: Tue Oct 19, 2004 5:26 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
Vivek,
you need to have those 2 message structures defined in a message set. then you can use mapping node.
right click mapping node --> open mappings.
select source and target messages...
and do a drag and drop.
I hope this helps, I am assuming you are using WBIMB 5.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|