ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to Group XML Messages

Post new topic  Reply to topic
 How to Group XML Messages « View previous topic :: View next topic » 
Author Message
pbravi
PostPosted: Fri May 17, 2002 10:53 pm    Post subject: How to Group XML Messages Reply with quote

Newbie

Joined: 15 May 2002
Posts: 6
Location: INDIA

Hi All
We want to group XML message ,
The Scenarion is as Follows

We are Transforming the EDIFACT Message into XML

our sample edi message looks like
cnt+5:KGM
cnt+6:PND

We want to group all the cnt segments into one

after initial transformation
------------------------------
<CNT_TAG>
<Weight>5</Weight>
<Weight Units>KGM</Weight Units>
</CNT_TAG>
<CNT_TAG>
<Weight>6</Weight>
<Weight Units>PND</Weight Units>
</CNT_TAG>

Required Result
----------------------
<CNT_TAG>
<Weight>5</Weight>
<Weight Units>KGM</Weight Units>
<Weight>6</Weight>
<Weight Units>PND</Weight Units>
</CNT_TAG>

Thanks in advance
P.B.Ravichandran
Back to top
View user's profile Send private message MSN Messenger
CodeCraft
PostPosted: Sat May 18, 2002 12:09 am    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

This should (probably) be a minor tweak to the paths you are specifying in your ESQL assignment/select statements. Can you show us the ESQL that you are using to get from source to target?
Back to top
View user's profile Send private message
Ward
PostPosted: Mon May 20, 2002 8:00 am    Post subject: Reply with quote

Voyager

Joined: 27 Jun 2001
Posts: 98
Location: Europe

Hi,

Easiest way of doing this is probably by directly indexing your code. When you add in a way like this:

SET I = 1 ;
some while loop
SET OutputRoot.XML.CNT_TAG[1].Weight[I] = ...
SET OutputRoot.XML.CNT_TAG[1].Weight[I] = ...
...
SET I = I + 1;
end your while loop

...you should be fine...

Cheers,

Ward
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to Group XML Messages
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.