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 » Doubt on Message set

Post new topic  Reply to topic
 Doubt on Message set « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Thu Oct 22, 2009 3:47 am    Post subject: Doubt on Message set Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

I have to create a message set for the following sample structure,

<Price Productname = "abcd"> 12.50 </Price>

here Price is decimal and Productname is String.

Here Price is an element with attribute Productname. In MB there is no option to create a attribute under an element directly, so i have created a complex type "Price" with decimal data type and a attribute Productname under this complex type with data type String.

- I dont have the option to set the precision for the decimal type Price.
- If for example my input has the value 15.00, in the output i am getting it as 15 as the value for Price.

How do i set the percision for this decimal type which is a complex type?
Is there any other way to add an attribute under a element in message set?

Please help.

Kashyap.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Oct 22, 2009 4:39 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The logical structure of a message is pure XML schema. In XML Schema, you cannot add an attribute to an element without first defining a complex type for the element.

If you want to set the precision, create a restriction of the simple type and add Value Constraints ( same as schema facets ) to it.

Tip: You can find out anything else that you need to know by Googling for 'XML Schema tutorial'.
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 » Doubt on Message set
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.