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 » Mrm Attributes

Post new topic  Reply to topic
 Mrm Attributes « View previous topic :: View next topic » 
Author Message
SuvenC
PostPosted: Mon Jun 23, 2003 7:22 am    Post subject: Mrm Attributes Reply with quote

Newbie

Joined: 23 Jun 2003
Posts: 4

Hi can anyone please help me. How can i use attributes with Mrm's eg with XML you can do the following :
Set OutputRoot.Header.(XML.Attribute)Response = 'No';
This will display ... <Response="No"> in the output.
Can i use a statement similar to this in Mrm format.

Thanks
Back to top
View user's profile Send private message Send e-mail
Craig B
PostPosted: Mon Jun 23, 2003 8:38 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Unfortunately it is not possible to use the field type (XML.Atttribute) in the MRM message body folder. This type is only understood by the XML parser and is needed in the absence of data model to follow. Ie the tree needs to store that this field needs to be rendered as an attribute because there is no other definitions in the generic XML domain.

However, when using MRM-XML then the XML physical format attributes settings are used to indicate how XML objects are to be rendered/written. Therefore when using MRM-XML you would create MRM objects in your MRM model that correspond to the structure of the XML message (usually done via DTD and the Schema importers as a preference). On the XML physical format layer there is an XML render field that indicates how a particular field is to be rendered. This can be set to such things as XML Element and XML Attribute etc. So when using MRM-XML, the message definitions contain this information therefore the message tree does not have to.

Care should be taken when using MRM-XML because XML is self-defining in nature. Therefore when not using MRM validation it is possible that elements can appear in the message and message tree that are not in the model. I mention this because if your message tree does not match the message definitions then a self defining element will be created that does not use the model definitions because it does match. The favourite for this seems to creating a compound type of sequence and then creating the elements in a different order in the message tree. This usually leads to the first field being rendered correctly because the rest match, but then the rest be rendered using defaults.

Hope this helps.
_________________
Regards
Craig
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 » Mrm Attributes
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.