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 IndexWebSphere Message Broker (ACE) SupportXML problems ....

Post new topicReply to topic
XML problems .... View previous topic :: View next topic
Author Message
Neinie
PostPosted: Thu Oct 16, 2003 7:10 am Post subject: XML problems .... Reply with quote

Newbie

Joined: 06 Aug 2003
Posts: 7

Hello All, I am running into problems while trying to extract certain portion of XML and assigning it as OutputRoot.XML. Briefly, in my ESQL code I am looking for a return code and based on that I want to forward the whole msg or part of msg to the outbound queue.
E.g. in following sample msg if the RC is 002 then I want to extract <MyRsps> node only and pass it on. I thought
Quote:
SET OutputRoot.XML = InputRoot.XML.Message.MyRsps

would do it but no luck.

<?xml version="1.0" ?>
<Message>
<MyRqst>
<MyRqstData>
<FieldA>Value1</ FieldA>
< FieldB>Value2</ FieldB>
< FieldC>Value3</ FieldC>
</MyRqstData>
</MyRqst>
<MyRsps>
<MyRspsData RC=”002”>
<FieldA>Value1</ FieldA>
< FieldB>Value2</ FieldB>
</MyRspsData>
</MyRsps>
</Message>


I would appreciate any help that you guys can provide.
Thanx
Neinie
_________________
Neinie
Back to top
View user's profile Send private message
Missam
PostPosted: Fri Oct 17, 2003 5:04 am Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Hi
Try this in your ESQL

IF(InputRoot.XML.Message.MyRsps.MyRspsData.(XML.Attribute)RC = '002' THEN
OutputRoot.XML.Message.MyRsps = InputRoot.XML.Message.MyRsps;
END IF;

Thanx
Sam
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportXML problems ....
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.