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 » XML Format

Post new topic  Reply to topic
 XML Format « View previous topic :: View next topic » 
Author Message
citahu
PostPosted: Fri Oct 18, 2002 3:01 pm    Post subject: XML Format Reply with quote

Newbie

Joined: 28 Aug 2002
Posts: 7

Hi Experts.

I have a situation to generate multiple xml outputs from one input.
It is best to illustrate the situation using the following example:

one Input
FieldA = 11
FieldB = 22
FieldC = 33

three Outputs should be:

<?xml version="1.0">
<start><item>11</item>
</start>

<?xml version="1.0">
<start><item>22</item>
</start>

<?xml version="1.0">
<start><item>33</item>
</start>

I have the following in my compute node:
SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldA;

SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldB;

SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldC;

The result:
Only one output (from field c) as follows:
<?xml version="1.0">
<start><item>33</item>
</start>

Your help is highly appreciated.
Back to top
View user's profile Send private message
lung
PostPosted: Sun Oct 20, 2002 5:56 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Try this...
Code:
SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldA;
PROPAGATE;

SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldB;
PROPAGATE;

SET OutputRoot.XML.(XML.XmlDecl) ='';
SET OutputRoot.XML.(XML.XmlDec1).(XML.Version) = '1.0';
SET OutputRoot.XML.start.item = InputRoot.MRM.FieldC;
PROPAGATE
Make use of the PROPAGATE function
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
citahu
PostPosted: Sun Oct 20, 2002 7:22 pm    Post subject: Reply with quote

Newbie

Joined: 28 Aug 2002
Posts: 7

Thanks Lung, I tried the PROPAGATE but have BIP2402 syntax error:'integer PROPAGATE'. Any input? Thanks again.
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Oct 20, 2002 8:52 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

PROPAGATE command is only available in WMQI 2.1 CSD2 and up. What version of MQSI/WMQI are you using?
_________________
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
View user's profile Send private message Visit poster's website
citahu
PostPosted: Sun Oct 20, 2002 8:55 pm    Post subject: Reply with quote

Newbie

Joined: 28 Aug 2002
Posts: 7

Thanks Kiran. I am using version 2.0.1 CSD5. Any other suggestions?
Back to top
View user's profile Send private message
lung
PostPosted: Sun Oct 20, 2002 10:08 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

citahu,

You can try creating an 'external loop'. Take a look at this thread... http://www.mqseries.net/phpBB2/viewtopic.php?t=3202&highlight=loop (thanks to Kiran for refering this thread to me in the first place)
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Format
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.