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 » Generic XML to MRM tranformation.

Post new topic  Reply to topic
 Generic XML to MRM tranformation. « View previous topic :: View next topic » 
Author Message
dsmq
PostPosted: Tue Jul 22, 2003 10:28 am    Post subject: Generic XML to MRM tranformation. Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Hi

I have 2 different XML schemas, i am trying to write a generic XML to MRM transformation which handles the multiple number of XML schemas

It is like 1 - Many mapping

eg

SET "OutputRoot"."MRM"."ACT" =
CASE
WHEN Topic = 'SIGNIN' THEN InputRoot.XML.ServiceData.reqInfo.SessionCreateRQ.ActionCode
WHEN Topic = 'CREATERES' THEN InputRoot.XML.ServiceData.reqInfo.RentalModifyRQ.Type.(XML.attr)ActionCode
END;

Instead of using CASE statement is there any way to do just

SET "OutputRoot"."MRM"."ACT" = InputRoot.XML.ActionCode;


even if we change the XML from

InputRoot.XML.ServiceData.reqInfo.SessionCreateRQ.ActionCode

to

InputRoot.XML.ServiceData.SessionCreateRQ.ActionCode


the generic transformation should work.

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 22, 2003 1:37 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You should be able to use the Select statement to find the ActionCode child node.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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