|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
map data inside the xml tag delimited by | |
« View previous topic :: View next topic » |
Author |
Message
|
ksilpaa |
Posted: Mon Jul 22, 2002 10:04 am Post subject: map data inside the xml tag delimited by | |
|
|
 Novice
Joined: 17 Dec 2001 Posts: 10
|
My format is
<Header>
..
..
...
</Header
<Body>
<rec>xxx|yyy|ss|ss|</rec>
<rec>xxx|yyy|ss|ss|</</rec>
.....
...
....
</Body>
i need to map the data inside the rec tags and send the same.
DO you have any idea how to do this? |
|
Back to top |
|
 |
kirani |
Posted: Mon Jul 22, 2002 4:53 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What is your output message format? Do you want to send them as single output message or multiple?
You could first parse the incoming input message as XML. Use Propagte to send data in <rec>....</rec> tags as BLOB messages. Define message format that corresponds to layout in <rec>....</rec> tags in MRM-TDS format. Parse the propagated message using MRM-TDS into required output format. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
ksilpaa |
Posted: Mon Jul 22, 2002 6:42 pm Post subject: |
|
|
 Novice
Joined: 17 Dec 2001 Posts: 10
|
The tags inside the rec are to be mapped to the same type of tagged delimited format
input format
<begin>
<header>
some xml tags
</header>
<Body>
<rec>t1|t2|t3|t4</rec>
<rec>t1|t2|t3|t4</rec>
<rec>t1|t2|t3|t4</rec>
<rec>t1|t2|t3|t4</rec>
<rec>t1|t2|t3|t4</rec>
<rec>t1|t2|t3|t4</rec>
....
.....
</Body>
</begin>
output format
<begin>
<header>
some xml tags
</header>
<Body>
<rec>t2|t1|t4|t3|somevalue1|somevalue2</rec>
<rec>t2|t1|t4|t3|somevalue1|somevalue2</rec>
<rec>t2|t1|t4|t3|somevalue1|somevalue2</rec>
<rec>t2|t1|t4|t3|somevalue1|somevalue2</rec>
</Body>
</begin>
Actually i created the base message set of the for the xml tags and created child message set ( tag delimited ) from that .
i was able to map and get the output but now i have problems when the output format of the rec contains more fields i want to add values and |
Thanks |
|
Back to top |
|
 |
kirani |
Posted: Mon Jul 22, 2002 6:54 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Have you created two child message sets, one for input and another for output?
If your input message is defined as,
Elements: F1, F2, F3, F4
Delimiter: |
You should define output message as,
elements: F1, F2, F3, F4, F5, F6
Delimiter: | _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|