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 to MRM Mapping - XML missing tags

Post new topic  Reply to topic
 XML to MRM Mapping - XML missing tags « View previous topic :: View next topic » 
Author Message
vasumath
PostPosted: Fri Dec 28, 2007 10:06 am    Post subject: XML to MRM Mapping - XML missing tags Reply with quote

Novice

Joined: 12 Feb 2007
Posts: 15

Hi All,

I have XML and MRM message sets. Using mapping node I am transforming XML message to MRM message. I need advice on how to map optional field. For ex In mapping node I have mapped like OutputRoot.MRM.deptId=InputRoot.XML.dept.deptID....

In some scenario my XML may not have deptID tag at all.....sometimes it may not have dept tag at all.... but the schema which I used to create XML message set contains dept.depID tag... Please guide me on how to handle this scenario

Thanks
Vasumathi
Back to top
View user's profile Send private message
WBI_user
PostPosted: Fri Dec 28, 2007 10:44 am    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

You can use the COALESCE function to provide a default value for a field
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 28, 2007 11:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Please don't use XML domain. Please use XMLNS or XMLNSC.

Otherwise, yes, use COALESCE.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vasumath
PostPosted: Fri Dec 28, 2007 1:51 pm    Post subject: Reply with quote

Novice

Joined: 12 Feb 2007
Posts: 15

Thank you so much...It is working fine.....
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 » XML to MRM Mapping - XML missing tags
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.