Posted: Thu Oct 22, 2009 3:47 am Post subject: Doubt on Message set
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?
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'.
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