|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Embedded Simple Type : ComIbmMRM_BaseValueString |
« View previous topic :: View next topic » |
Author |
Message
|
rajasri |
Posted: Mon Apr 16, 2007 12:01 am Post subject: Embedded Simple Type : ComIbmMRM_BaseValueString |
|
|
 Centurion
Joined: 11 Jun 2006 Posts: 114
|
Hi all, how can we model a mxsd to include embedded simple type in the message. i went through the documentation and i saw that there must be an element defined with the type ComIbmMRM_BaseValueString. But i couldnt see any types like this. can any one put some light on this. I want to define message like this
<Parent>
<Child1>XXX</Child1>
abcde
<Child2>nnn</Child2>
</parent>
How to define the message in mxsd to include "abcde". |
|
Back to top |
|
 |
kimbert |
Posted: Mon Apr 16, 2007 12:19 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Embedded simple types are deprecated. You cannot create new embedded simple types in v5/v6. The solution is to set the 'Mixed content' flag on the Complex Type. You will get an anonymous string element in the message tree for each piece of mixed content, and you can access it in the usual way using Parent.*[index] |
|
Back to top |
|
 |
rajasri |
Posted: Mon Apr 16, 2007 12:35 am Post subject: RE |
|
|
 Centurion
Joined: 11 Jun 2006 Posts: 114
|
Hi Kimbert, I agree with you. Doc talks about accessing an input message with mixed content. Do you mean to say that if I want to create an output message whose model has ben defined as a having mixed content, then it is not possible to do this.i.e. if i create a message like:
<Parent>
<Child1>* please do not use *</Child1>
<Child2>nnn</Child2>
and I want to insert a text element after Child1, how can I do it.
As far as i know, i cant say
set OutputRoot.XML.Parent.*[2] ='nmnmn';
as it will update Child2 element but create a new text element. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Apr 16, 2007 1:09 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Code: |
CREATE NEXTSIBLING OF Parent.Child1 TYPE Value VALUE 'abcde' |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|